Skip to content

Planning Workflow

Lukas Fey edited this page Aug 14, 2023 · 3 revisions

Planning Workflows are Workflows that are used as Planning Destinations in the Master Workflow. They have to fulfill special requirements:

Planning Workflows are useful for manipulating an order before execution, typically by setting vetoes or changing the monitoring level.

The Service xprc.xpce.OrderControlService.createSchedulerInformation can be used to create a SchedulerInformation object containing the capacities configured for the current Order Type.

Table of Contents

Setting the Planning Destination for an Order Type via CLI

The Planning Destination can be set via this CLI-Command: <syntaxhighlight lang="bash"></syntaxhighlight> ./xynafactory.sh setdestination -destinationKey <arg></arg> -destinationValue <arg></arg> -dispatcherName <arg></arg> -workspaceName <arg> &lt;/syntaxhighlight&gt;</arg>

Argument Explanation Example
destinationKey The Order Type to use new destiantion for (Execution Destination) xact.NewWorkflow
destinationValue Planning Workflow DefaultPlanning, xact.planning.PlanNewWorkflow
dispatcherName Name of the Dispatcher Planning, Execution, Cleanup
workspaceName Name of the corresponding workspace. If you want to refer to an application, you have to use the arguments applicationName and versionName instead "default workspace"

Retrieving the Planning Destination for an Order Type via CLI

With <syntaxhighlight lang="bash"> ./xynafactory.sh listdestinations --applicationName  -dispatcherName   -versionName   -workspaceName </syntaxhighlight> it is possible to retrieve Planning Destinations for Order Types.

Planning Destinations in the Factory Manager

Alternatively, you can set the Planning Workflow in the Xyna Factory Manager in the section "Order Types" in the details view of an Order Type: Set Planning Workflow

Monitoring

Planning Workflows are not displayed in the Order Overview table. However, subworkflows called by Planning Workflows are shown. Their Root Id matches the Id of the Execution Destination.

See Also

Clone this wiki locally