Adding actions to a Datacap Maintenance Manager application
You can create a simple ruleset with actions that check the status of batches within a specified application workflow and email the results to an administrator.
Procedure
To add actions to a Maintenance Manager application:
- In Datacap Studio, on the Task Profiles tab, click Lock/Unlock task profiles to lock the task profiles list for editing. The blue unlocked icon changes to orange and locked.
- Click Add a new task profile to create a new task.
- Select Custom, enter a name for the new task such as Maintenance Manager, and click OK. The window closes and the new task name is displayed in the Task Profiles tab.
- Click Save changes to save the task profiles list.
- On the Rulesets tab, right-click the workflow name and choose Add Ruleset. Ruleset1 is added.
- Click the Ruleset1 label, and rename the new ruleset, such as the name Maintenance Manager.
- On the Task Profiles tab, select the Maintenance Manager task.
- On the Rulesets tab, select the Maintenance Manager ruleset and click Add ruleset to profile.
- On the Task Profiles tab, click Save changes and then click Lock/Unlock task profiles to unlock the task profiles list. The orange locked icon changes to blue and unlocked.
- Within the new ruleset, select Function 1.
- Click the Actions Library tab and expand the Maintenance Manager actions to display the available actions.
- Use Add to function to add each
of the following actions to Function 1:
- SetUser
- SetPassword
- SetStation
- SetApplication
- SetupOpenApplication
- QuerySetStatus
- ProcessRunSqlQuery
- LogSendEmail
- In the Rulesets tab, select each
of the actions that requires a parameter and enter the parameter value
in the Properties tab, then press Enter.
The parameter value is displayed in the action on the Rulesets tab. For example:
Table 1. Rulesets tab example parameter values Parameter Example value SetUser admin SetPassword admin SetStation 1 SetApplication APT QuerySetStatus stopped LogSendEmail Enter your email address in the addressTo parameter Attention: The LogSendEmail action takes multiple parameters but in most cases only the addressTo parameter is required. To get information about the other parameters, select LogSendEmail in the Actions Library tab and click Display information about an action or namespace to view the embedded help. - On the Rulesets tab, click Save changes. Then, click Lock/Unlock ruleset and select the Publish ruleset. The orange locked icon changes to blue and unlocked.
- On the Document Hierarchy tab, click Lock DCO for editing to lock the DCO for editing. The blue unlocked icon changes to orange and locked.
- Expand the top batch level of the DCO and, in the Open node, select global.
- On the Rulesets tab, select Rule 1 in the Maintenance Manager ruleset and click Add to DCO.
- On the Document Hierarchy tab, click Save changes and then click Unlock DCO to unlock the DCO. The orange locked icon changes to blue and unlocked.
Parent topic: Creating a Datacap Maintenance Manager application