Schedule Workflows with Profiles
This article shows you how to use theĀ necessaryĀ settings, test your new workflow (optional), create a new profile, create a scheduleĀ with the MaintainĀ Events Tool, or via Automation Center.
Required Settings on the IWS Side
You must use the Scheduled BeginĀ object as the starting pointĀ of your process. Without this, scheduling will be unavailable.
Next, openĀ the Parameters OverrideĀ drop-down list in the properties of this object. This is a list of all variables that can be set up from profiles.
Check that you are using IWS version 1.0.1.565 or higher. You have to re-save and re-publish main worksheet if yourĀ version is older.
These variables will be available on the main worksheet of the process as common workflowĀ variables withĀ 'param_' prefixes. E.g., to transfer parameter ProcessName to the any task or sub process you can refer to it as:
:param_ProcessName:
Please consider thatĀ we don't have any 'global variables' orĀ 'global parameters'Ā within workflows. Therefore, if you need theseĀ parameters inside a subprocess ā you should pass them thruĀ Custom CM ParametersĀ property.
Publish the solution when everything is set.
Testing the Workflow
(This is an optional step if you already know that your process works properly.)
Test your workflow to make sure it works fine.Ā One of the ways to do that is clicking RunĀ on the ribbon toolbar and applying Run onlyĀ option:
WhenĀ the runĀ is completeĀ a new tab with Monitoring Tool application will be displayed. Check that all steps of the workflow have been performedĀ according to your design.
Creating New Profile
To create a new profile right click the process in the Monitoring Tool application tree and select Run With Overrides.
The window for custom parameters will pop up. You can open & edit or create a profile here. You shouldĀ type the parameters of the workflow (that was declared in Step 1) and theirĀ values in the grid:
Click Save As ProfileĀ to save your new profile onĀ the region. Remember the name you gave it ā you will need itĀ for the scheduler setup.
Scheduling
Next, you will want to create a schedule for this process and activate it.
The steps are shown below for if you use Classic Eagle or Eagle UI.
Maintain Events Tool (for Classic Eagle users)
To create a scheduler you need theĀ Maintain EventsĀ tool.
Click NewĀ and go thru the following steps.
1.Ā Enter aĀ name for your new event.
Set the engine as "Message Stream" and tune other options. Click Event OptionsĀ when you are done.
2. Select the stream with the name of the mainĀ worksheetĀ of your workflowĀ with aĀ "_restart" postfixĀ from the list of available streams.
3. Then you need to bind the profile you created earlierĀ andĀ current schedule event. UseĀ "Stream Parameters" to do it.Ā Enter the parameters as a TagValue string withĀ '~' separator:
TAGNAME~TAGVALUE~
Available tags:
1177 ā correlation ID prefix. This is a string that will be appended to the correlation ID in each instance of this workflow. This is very helpful in future troubleshooting.
1166 ā this tag is the name of profile that was created in step 3.
Full file name must be declared ā including extension.
4. Save your new event.
AutomationĀ Center (for Eagle UI users)
Launch Automation Center applicationĀ to create a schedule for eagle_wrf_full_extract stream.
1. Open Automation Center:
2. Click Create NewĀ and select Event.
3. Type anĀ event name in theĀ Name field, set "Message Stream Process" as its typeĀ and click Next.
4. In the next form please select an item matching you main worksheet name (where you put "Scheduled Begin") withĀ "_restart" postfix. Specify a profile name for thisĀ schedule event.
ClickĀ Next.
5. Select a stream item with "_restart" postfix once again and insert your stream parameter in format as defined aboveĀ and clickĀ Save & Schedule button.
6. Type aĀ Schedule Name and click Next.
7. Click Save & Finish.
8. Select created schedule in theĀ Schedule tab and clickĀ Enable.
9. Right-click on created schedule and select Submit with Overrides.
10. Check your settings (you can also defineĀ Stream ParameterĀ and change profile file if necessary).
Click Submit.