Lock Resource Service (Magic xpi 3.x)
To add the Lock Resource service to a flow:
-
Find the services icons in the Components pane at the left of the screen. You can display only the services by selecting Services from the drop-down list at the top of the Components pane.
-
Drag the Lock Resource service to your flow.
-
In the Lock Configuration dialog box, enter the information as described in the table below:
|
|
Name
|
Type a name that describes the service in the flow.
|
Description
|
Type a description of the service in your flow (optional).
|
Processing mode
|
Select whether the step should be executed linear, parallel or stand-alone This is only available if the Lock Resource service is not the first step in a flow.
|
Wait for completion
|
Select whether the step should be run in Wait for Completion mode. The options are Yes or No.
Note:
|
Wait for completion is only available when the Lock Resource service is a Linear step and if it is not the first step in the flow.
|
|
|
Save Point
|
Select Yes to indicate that the step is a Save Point in your flow. This is available only if the flow's Recovery Policy is set to Save Point.
|
Magic xpi Server
|
Select the Magic xpi Server where the Locking Resource service is executed.
Click to the right of the Magic xpi Server field to open the Server List. Select a server from the list and then click Select.
|
Call logic flow
|
You can use this option if you want to call generic logic after the execution of a specific step. Once this step has been executed, the flow logic that you defined in the flow properties is called before the Server continues to the following steps.
The options are Yes or No (default).
|
Lock Name
|
Select to the right of the field and enter to open the Expression Editor to create a Lock Service name or type the name of the Lock service.
|
Persistence
|
Indicates whether the locks should be managed in the Server’s memory or saved to the database. Select one of the following from the drop-down list:
|
Timeout
|
Type the maximum time to wait (in seconds) to try and lock the critical section. A zero value indicates that there is no timeout limit.
|
Return Code
|
Click to the right of the field to open the Variables List. From the list, select a variable to receive the return code. This return code indicates whether the locking process has been successful. The return code is:
|
-
Click OK and close the Lock Configuration dialog box. The Lock Resource service is displayed in the flow.