Knowledge Base
 

  

 

 

Knowledge Base
Previous  BackToCategory  Next  4 of 47
Use looping in a process


Summary
Requirements
Create a Process
Inserting a Process Variable into the Process
Inserting a While node into the Process
Inserting a Custom Action node into the Process
Configuring the While node
Configuring the Custom Action node
Connect the nodes
Save the Process
Run the Process

Summary

This article demonstrates how to use looping in a process.

Requirements

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


Create a 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 value and set the initial value to 0.



Inserting a While node into the Process

In the Toolbox menu go to Condition & Loop Nodes, select the While node

and drag it into the process designer area.




Inserting a Custom Action node into the Process

In the Toolbox menu go to Action Nodes, select the Custom Action node

and drag it into the process designer area.




Configuring the While node

Click on the While node and open the code window by clicking the ellipsis of the Expression property in the Properties window.



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

  view plain | print
1 If (ProcessVariable("value") < 4) Then 
2  Return (True
3 Else 
4  Return (False
5 End If 






Configuring the Custom Action node

Click on the Custom Action node and open the code window by clicking the

ellipsis of the Execution Code property in theProperties window.



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

  view plain | print
1 ProcessVariable("value") = ProcessVariable("value") + 1 

 






Connect the nodes

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

and drop it on the While node. Drag the arrow from theWhile node to the

 Custom Action node. Then drag the arrow from the Custom Action node to the Loop node. Finally, drag the arrow from the Loop 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  4 of 47
Copyright © 2010 by Stone Bond Technologies | Phone: +1 (713) 622-8798   |  Privacy Statement   |  Terms of Use