Reference execution command


Execution by referencing specified scheduling parameters is possible. (Ver. 15 restricted feature.)
By using the reference execution command, it is possible to avoid duplicate creation of the same scheduling parameters in child parameters and custom menus of multiple scheduling parameters.

Basic use method

For a scheduling parameter, custom menu, custom tool button, etc., insert a reference execution command as a child object of a scheduling parameter, and specify the scheduling parameter (class definition is DefaultSchedulingParameter command ) to be executed in [Reference scheduling parameter]. Command objects that are not scheduling parameters, such as the Explode order command, cannot be executed even if specified.
Also, ensure that they do not reference themselves or one another, causing endless loops. When an endless loop is detected during execution, an error message is output and the execution is stopped.

Pre-execution property modify expression and post-execution property modify expression

The properties of reference scheduling parameters can be edited immediately before and after execution of reference scheduling parameters.

Example 1

Pre-execution property modify expression ME.WorkSortExpression='ME.Work_Order.Order_LET,a;ME.Work_Order.Order_Priority,d'
Post-execution property modify expression  

Perform execution by replacing the dispatching rules of reference scheduling parameters with order due date (ascending) + order priority (descending).


Example 2

Pre-execution property modify expression ME.WorkSortExpression=HOLDER.Parent.Command_WorkSortExpression
Post-execution property modify expression  

Perform execution by replacing the dispatching rules of reference scheduling parameters with the dispatching rules set to the scheduling parameters of the parent of the reference execution parameter.


Example 3

Pre-execution property modify expression 1  PROJECT.Child['Command'].Child['Scheduling'].Child['Temporary'].Command_WorkSortExpression=ME.WorkSortExpression
2  ME.WorkSortExpression=HOLDER.Parent.Command_WorkSortExpression
Post-execution property modify expression 1  ME.WorkSortExpression=PROJECT.Child['Command'].Child['Scheduling'].Child['Temporary'].Command_WorkSortExpression


In the case of the settings given in Example 1 and Example 2, the dispatching rules of the reference scheduling parameters have disappeared, but this is an example of restoring them so as not to lose them.
In the scheduling parameter table, create a scheduling parameter called “Temporary” to temporarily save dispatching rules.

After saving the dispatching rules in the Pre-execution property modify expression, replace them with the dispatching rules set in the scheduling parameters of the parent of the reference execution command.
After reference execution, return the saved scheduling parameters to the reference scheduling parameters with the Post-execution property modify expression.


HelpNo.:778510
© 2017 Asprova Corporation, All rights reserved.