Process flow keeps its data in a memory called Process Flow Context that is used by the process flow during its execution. When a process flow takes any data from the context, it uses the context source activity. Context Source is used to read a variable and stream it out to other activities of the process flow. In addition, Context Source can also read a file from the repository (WebDAV or File) and pass it to other activities. Similarly, when a process flow sends any data to the context, it uses the context target activity.
To create a Context Source/Target activity:
In the Process Designer, in the Repository View panel, expand Activities > Source > Context Source.
Drag the Context Source to the Graph Canvas area.
- In the Graph Canvas area, right-click the Context Source and click View Properties. Alternately, you can click the Context Source element. This displays the properties of the context source at the Bottom Pane.
A list of properties and their descriptions are displayed in the table below:
Properties
Description
Document Repository
This property specifies whether the data to be taken from the value of process flow variable, or from the document repository.
If it is set to false, the source data is taken from the Process Flow variable, specified by the Parameter Name property.
If it is set to true, the source data is taken from the repository file specified by the File Name (with full Path) property. Specify the path of the document repository and the name of the repository file, from which the data is to be taken, in this field. The repository can be WebDAV repository or file repository.
eventContextEnabled
By default it is set to NO. If you want to pass any data from the event, select Yes. For example, if you are triggering the process flow using Mail Event and you want to pass the content of the email to the process flow, set this property to yes. To know about events, refer to the Creating Trigger and Events section.
Format
Data Format; whether Plain Type or Record Type. Select Plain Type, if data is in Byte Stream. Select Record type, if data is in record format.
Label
Label of the Context Source Activity displayed in the Graph Canvas area.
Name
Name of the Context Source activity. By default, it is same as the Process Variable name.
Repository Folder
Name and path of the WebDAV folder. This property is displayed only if the Document Repository property is set to True.
ParameterName
Select the name of the Process Flow Variable, whose value is to be taken as context source. This property is applicable only when the Document Repository Property is set to False.
Source
Name of the stream being consumed by this activity. This property is applicable only for Context Target. It is non-editable.
streamNames
Name of the output stream name. This property is applicable only for Context Source. It is non-editable.
Sync
Specifies whether the activity will be executed in Sync mode or A-sync mode.
Type
Activity Type; whether Context Source or Context Target. By Default Context Source is selected. If you want to use it as Context Target, select Context Target from the dropdown list.
Version Control
It specifies whether versions are to be maintained in the repository file, which is created by context target. This property is displayed only if the Document Repository property is set to True. If this property is set to false, then the versions are not maintained. If it is set to True, then all versions are tracked.