Knowledge Base
 

  

 

 

Knowledge Base
Previous  BackToCategory  Next  7 of 47
Send data to a sub process

 

Summary
Requirements
Create the Log Message Process
Inserting a Process Variable into the Process
Inserting a Custom Action node into the process
Configure the code for the Custom Action node
Connect the nodes
Save the Process
Run the Process
Create the sub process
Inserting a Process Variable into the Process
Inserting a Sub Process node into the process
Connect the nodes
Save the Process
Run the Process

Summary

This article demonstrates how to send data to a sub process.

Requirements

  1. Enterprise Enabler version 5.x
  2. Process Designer

Create the Log Message Process

Open Enterprise Enabler and create a new process by clicking File » New » Process.




Inserting a Process Variable into the Process

In the Toolbox menu go to Proc. Variables, select Proc. Variable and drag it

into the process designer area. Rename the Proc. Variable to message. 

Inserting a Custom Action node into the process

In the Toolbox menu go to Action Nodes, select Custom Action and drag it

into the process designer area.

 


Configure the code for the Custom Action node

Click on the Custom Action node and open the code window by clicking the ellipsis of ExecutionCode property in the Propertieswindow. 

 

Click on the Advanced Tab and click the Add Reference button. In the 'Select the assembly to add a reference' dialog box select the SBT.EE.Misc_Utils.dll and click the Open button.

 

Click on the Code Window tab and enter the following code:

  view plain | print
1 SBT.EE.Misc_Utils.LogError(new exception(ProcessVariable("message")),System.Diagnostics.EventLogEntryType.Information) 



 

Click on the Save button to exit the code. 

Connect the nodes

In the designer window drag the arrow of the connector from the Start 

node and drop it on the Custom Action node. Drag the arrow from the 

Custom Action node to the Stop node. The completed process should look like the following figure: 

 


Save the Process

Click anywhere in the empty area on the designer window and rename the

process name in the Properties window.

 

To save the process click the Save button in the Standard toolbar. 

 

Run the Process

Click on the Start the Process button in the Process Designer toolbar to run the process. 




Create the Sub Process

Open Enterprise Enabler and create a new process by clicking File » New » Process.

 

 




Inserting a Process Variable into the Process

In the Toolbox menu go to Proc. Variables, select Proc. Variable and drag it into the process designer area. Rename the Proc. Variable to subprocessName. Set the initial value of the variable to the name of the process created above.


Inserting a Sub Process node into the process

In the Toolbox menu go to Action Nodes, select Sub Process and drag it into the process designer area. The Sub Process node needs one local variable and this needs to be mapped to the Process Variable. The mapping can be done by clicking the Sub Processnode in the designer area and then the ellipsis in VariableMappings property in the Properties window. Select the processNamevariable and click Edit button. Select the subprocessName Process Variable from the window and click the Select button.

 


Connect the nodes

In the designer window, drag the arrow of the connector from the Start node and drop it on the Sub Process node. Drag the arrow from the Sub Process node to the Stop node. The completed process should look like the following figure: 

 


Save the Process

Click anywhere in the empty area on the designer window and rename the

process in the Properties window.

 

To save the process click the Save button in the Standard toolbar. 




Run the Process

Click on the Start the Process button in the Process Designer toolbar to run the process. 


Previous  BackToCategory  Next  7 of 47
Copyright © 2010 by Stone Bond Technologies | Phone: +1 (713) 622-8798   |  Privacy Statement   |  Terms of Use