Redwood Documentation

Product Documentation

 

›Chain Definitions

RunMyJobsProcess and Chain Definitions

Process Definitions

  • Creating Process Definitions
  • Setting Chain Definition and Chain Definition Properties
  • Integrating Redwood Server with Web Services
  • Redwood Definition Types
  • Maintenance Process Definitions
  • Template Process Definitions
  • Top Level Process Definition
  • Submit Form Editor
  • Default System Process Definitions

Processes and Chains

  • Advanced Chain Diagram Quick Reference
  • Chain Diagram Quick Reference
  • Chain Runtime Viewer Quick Reference
  • Advanced Chain Definition Editor Quick Reference
  • Advanced Chain Runtime Viewer Quick Reference
  • Advanced Diagram Quick Reference
  • Parameter Validation using Constraints
  • Processes Waiting on Events
  • Setting the Scheduling Behavior on the Control Tab
  • Setting the Retention Period for Processes
  • Runtime Limits
  • Setting Process Definition Options
  • Defining Parameters
  • Constraint Definitions
  • Constraint Class
  • Raising Events
  • Processes with Locks
  • Reaction Processes
  • Restart Behavior on the Process Status Tab
  • Searching Files
  • Setting the Name and Editing the Process Definition Source
  • Customizing Processes with Specific Actions
  • Using Table Parameters
  • Automatically Deleting Old Processes and Chains
  • Editing Process Definitions Safely
  • Parameter Formats

Chain Definitions

  • Using Chain Definitions
  • Creating Chain Definitions
  • Steps
  • Chain Processes
  • Creating Chain Definitions with Sequential Processes
  • Creating Chain Definitions with Parameter Handling
  • Creating Chain Definitions with Parallel Chain Processes
  • Creating Chain Definitions with Chain Processes Dependencies
  • Creating Chain Definitions for Multiple SAP Systems
  • Precondition Functions

Restart Behavior

  • Controlling Global and Partition Restart Behavior
← Creating Chain Definitions with Sequential ProcessesCreating Chain Definitions with Parallel Chain Processes →

Creating Chain Definitions with Parameter Handling

You override chain processes parameter values using chain definition parameters or map them to parameters of other chain processes.

There are two parameter classes, scheduling parameters and process parameters. Scheduling parameters define the status of the chain at submit time, the queue or the priority, for example. Chain Processes have additional scheduling parameters that control start time and the behavior of the step.

For some processes, like OS processes or SAP jobs, the queue defines the system where the process runs.

Chain process parameters have the following levels:

  • chain definition level parameters, which are filled at submit time and can be common to one or more processes.
  • chain process level parameters, which are individual.

Parameter Direction

Parameters have three directions: IN, OUT and IN/OUT. You can map chain definition parameters to individual chain processes as well have a chain process modify a parameter and pass the modified parameter on to another chain process.

The IN parameters are constants defined at submit time; they are read-only. The Out parameters have no default value and can be filled/modified by individual chain processes; once an OUT parameter has been filled, it can be used by other chain processes. The IN/OUT parameters have a default value and can be modified by individual chains. At any time, you can map a parameter's IN or OUT value, as they are saved individually. The OUT value of an unmodified IN/OUT parameter is its IN value; the value you specified at submit time.

note

The data type must always match when you map parameters. For example, most built-in process definitions have string parameters.

note

The Display Order of parameters is also the order in which parameters are resolved. If you use Redwood Expression Language to define a parameter based on the value of another parameter, the parameter in the expression must have a lower Display Order than the parameter it defines or the latter will not get resolved.

Procedure

  1. Choose "Definitions > Chains" in the Navigation bar.
  2. Choose New Chain Definition from the context-menu.
  3. Choose the &Chain Definition tab and fill in a name for the &Chain Definition, choose Save.
  4. Choose Add Step from the context-menu, notice that a new step with the caption Step 1 has been added.
  5. Choose Add Process from the context-menu of Step 1.
  6. Choose Process 1 and enter the part of the process definition name into the Process Definition field.
  7. Choose the desired process definition out of the list of available processes.
  8. Under Scheduling, enter a parameter for Queue.
  9. If process level parameters are required:
  10. Choose the appropriate process.
  11. Fill in the desired value in Expression.
  12. If chain definition level parameters are required:
  13. Choose the appropriate parameter under Reference.
  14. Choose Save to save the changes made to the chain definition.

Example

Create a chain definition with two steps, each step containing one process. Use a chain definition parameter and map it to the parameter of the first process of step Step 2.

  1. Choose "Definitions > Chains" in the Navigation bar.
  2. Choose New Chain Definition from the context-menu.
  3. Choose the Chain Definition tab enter MSLN_GL_INV_IN in the Name field.
  4. Fill System into the Queue field.
  5. Choose MSLN_GL_INV_IN on the Chain Definition tab.
  6. Choose Add Step from the context-menu.
  7. Choose Step 1.
  8. Choose Add Chain Process from the context-menu and choose the newly created box.
  9. Enter Sleep into the Process Definition field.
  10. Choose System_Sleep from the list of available processes.
  11. Fill 10 into the Priority field.
  12. Choose MSLN_GL_INV_IN.
  13. Choose Add Step.
  14. Choose Step 2, choose Add Chain Process from the context-menu and then choose the newly created box.
  15. Enter Sleep into the Process Definition field.
  16. Choose System_Sleep from the list of available process definitions.
  17. Enter the value System into the Queue; note that this task is optional here, as this queue has been defined as default queue of the chain definition, and will be used by default for this process as well.
  18. Choose the Parameters tab.
  19. Choose a row.
  20. Fill SleepTime into the Name field.
  21. Select Number in the Type field, the default value was String.
  22. Fill 1 into the Display Order field.
  23. Fill 2000 into the Default Expression field.
  24. Choose Save.
  25. On the chain definition tab, expand Step 2, choose Sleep.
  26. Expand Time to Sleep and select MSLN_GL_INV_IN:SleepTime in the Reference field.
  27. Choose Save & Close to save the process.

Submit the Chain Definition

  1. Navigate to "Definitions > Chains" in the Navigation bar.
  2. Choose Submit from the context-menu of the chain definition MSLN_GL_INV_IN.
  3. Fill 3000 into the SleepTime field; note that the default value of the chain definition is 2000 and the default of the process definition is 1000.
  4. Choose Next, and Next again.
  5. Fill System into the Queue field, and choose Submit.

See Also

  • Chains

JobChain

← Creating Chain Definitions with Sequential ProcessesCreating Chain Definitions with Parallel Chain Processes →
  • Parameter Direction
  • Procedure
  • Example
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |