Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<INCLUDE FILE="

the Browse button next to the File property in the right panel

Image AddedImage Added

Select w_config.inc file in eagle_ml-2-0_cm

/

folder

Image Added

Drop the Code shape from left panel in group ADVANCED after Call Include shape with w_config.inc

" RELATIVEPATHTYPE="RULESROOT" /> <CODE>IF

and set value of the Code shape as

Expand
titleIn case of transform translator (click to 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

Image Removed

The include file will open for edit:

Image Removed

 Paste the following code into the editor

Code Block
languagexml
Code Block
languagetext
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="

Image Added

Drop a Code shape, then a Call Include shape and click Browse button next to the File property in the right panel

Image Added

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

Image Added

Drop a Code shape and set its value as

Code Block
languagetext
: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" />

Image Removed

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:

Image Removed


Info

If you need to share more variables

,

you can add them to the Code shape using

syntax

variable_name;variable_value! syntax. For example,

to share

if we have another variable count

 the code between green lines

to share, then the Code shape value will be as follows

Code Block
languagetext
:varTaskParams: := :varTaskParams: + 'variableA;' + :variableA: + '!' + 'count;' + :count: + '!'

Now you can save and close editor tab


Image RemovedDrop a Call Include shape and click Browse button next to the File property in the right panel

Image Added

Select upd_w_state.inc file from eagle_ml-2-0_cm folder

Image Added

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,…

...