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 select Activities > Source > Context Source.
Drag the Context Source to the Graph Canvas areaArea.
- In the Graph Canvas areaArea, right- click the Context Source and click select View Properties. Alternately, you can double-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 explained in the table below:
Properties
Description
Label
Label of the Context Source Activity displayed in the Canvas area.
Type
Activity Type whether Context Source or Context Target.
Alias Name of the Record Queue Producer activity. By default, it is Record Queue Producer. Activity Maximum Retries on Failure Maximum number of retries on the failure of an activity to connect to the server. The process flow resumes, if it finds a connection within the specified retries, otherwise aborts the process flow. Activity Wait Time (in seconds) between Retries Time (in seconds) between successive retries. Async Specifies whether the activity will be executed in Sync mode or A-sync mode. Record Queue Producer is always executed in a-sync mode. This field is non-editable. Character Set Encoding Character set encoding used for parsing, in case input data is XML. Document Repository This property specifies whether the data is 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 Event Context Enabled By default it is set to No. Select Yes to pass any data on the event. 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. Format Data Format; whether Plain Type or Record Type. Select Plain Type, if the data is in the Byte Stream. Select Record type, if the data is in the record format. Label
Label of the Context Source Activity displayed in the Graph Canvas area.
Parameter Name Name of the Context Source activity. By default, it is same asthe 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.
Name of the ProcessParameterName
Flow variable, whose value is to be taken as a 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 non-editable and is applicable only for Context Target.
streamNames
Name of the output stream name. This property is non-editable and is applicable only for Context Source.
Sync
Specifies whether the activity will be executed in Sync mode or A-sync mode.
Activity Type whether Context Source or Context TargetType
. Version Control Specifies whether versions are to be maintained in the repository file created by Context Target or not. This property is displayed only if the Document Repository property is set to True.