...
Expand | |||||
---|---|---|---|---|---|
| |||||
Drop a Variable shape onto the worksheet. It represents the variable you are going to share. Drop a Call Include shape from the left panel in ADVANCED group to the workspace and click the edit… link on the shape The include file will open for edit: Paste the following code into the editor Code Block | | ||||
|
Code Block | ||
---|---|---|
| ||
IF Find(:FILE_NAME:, :corrIdSep:) = -1 AND Find(:FILE_NAME:, '-', 2) != -1 AND Find(:FILE_NAME:, '_') != -1 THEN [ :CorrelationId: := SubString(:FILE_NAME:, Find(:FILE_NAME:, '-', 0, 2) + 1); :CorrelationId: := SubString(:CorrelationId:, 0, Find(:CorrelationId:, '_')); ]; </CODE> <INCLUDE FILE=" |
Drop a Code shape, then a Call Include shape and click Browse button next to the File property in the right panel
Select get_w_state.inc file in eagle_ml-2-0_cm
/get_w_state.inc" RELATIVEPATHTYPE="RULESROOT" /> <CODE> <!-- Code which you can change starts here -->folder
Drop a Code shape and set its value as
Code Block | ||
---|---|---|
| ||
:varTaskParams: := :varTaskParams: + 'YOUR_VARIABLEvariableA;' + :YOUR_VARIABLEvariableA: + '!' <!-- Code which you can change ends here --> </CODE> <INCLUDE FILE="eagle_ml-2-0_cm/upd_w_state.inc" RELATIVEPATHTYPE="RULESROOT" /> |
You can change the code between the two green lines <!-- Code which you can change starts here --> and <!-- Code which you can change ends here --> to add shared variables.
In our case:
Info |
---|
If you need to share more variables |
you can add them to the Code shape using |
variable_name;variable_value! syntax. For example, |
if we have another variable count |
to share, then the Code shape value will be as follows
|
Now you can save and close editor tab
Drop a Call Include shape and click Browse button next to the File property in the right panel
Select upd_w_state.inc file from eagle_ml-2-0_cm folder
Return to the workflow and select the first translator. In the OutParams propertyin the right panel set the Set the name of the variable to share (variableA in our case) in the OutParams propertyin the right panel
If you add several variables, use comma separator in OutParams property, for example, variableA,variable1,variable2,…
...