This example demonstrates how to use two component steps
to file an attachment in the workflow by using the file operation.
In this Content Extended Operations example, two component
steps use the file operation to file a document
(an attachment in the workflow) in a specific folder that is dependent
on a response in a previous step.
- Define the values required for the operation:
Using
Process Designer, in workflow properties define the attachments as
shown in the image below.

In defining the values
of the two target folders, create the two folders (bcAccept and bcReview)
in the object store, if necessary .
Note that the value for
target_attachment can be specified in the workflow definition, or
it can be the initiating attachment or specified during processing.
- Define the appropriate steps in the workflow:
In
the map, a Decide step contains responses "Accept" and "Review" with
corresponding routes (OK, Not OK) to the component steps based on
the selected response.
- For each component step, specify the parameters for the
selected operation:
In the operation parameters for
the FileAccepted component step, select the File operation,
then set the operation parameters as indicated in the image below.

In
the operation parameters for the FileReview step, the sourceDocument
is again set to target_attachment, and the destFolder is set to target_folder_Review.