ScriptEigener Objekttyp in der Automation Engine Function: Checks if a workflow has already been activated
Syntax
SYS_STATE_JP_ACTIVE([Workflow])
Syntax |
Description/Format |
---|---|
Name of a workflow. |
Return codes |
---|
"Y" - The workflow is in a status with system return code < 1699 or 1701.
|
Comments
This script function checks whether the specified workflow is in a status with a system return code that is below 1699 or equals the return code 1701. If none of the two parameters is specified, the function checks the object in which it is used.
The verification takes place while the script line that contains this function is being processed. A negative result does not inform whether the object will be activated later. Therefore, you cannot use this function to synchronize processes. The information that this script function supplies about object states is only valid for a limited period of time.
Examples
The following example checks whether the workflow FI.DAY.SET is active. The name of the workflow is assigned through a script variable.
:SET &JP#
= "FI.DAY.SET"
:SET &ACTIVE# = SYS_STATE_JP_ACTIVE(&JP#)
See also:
Script element | Description |
---|---|
Checks if an object has already been activated. |
|
Checks if a job has already been activated. |
|
Returns the number of jobs that are registered in groups. |
Script Elements - Activate Objects
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function