Script Function: Checks if a workflowAn object of the Automation Engine that can include several executable objects and which runs them in a specified order. [Formerly called "ProcessFlow" and "JobPlan."] has already been activated
SYS_STATE_JP_ACTIVE([Workflow])
Syntax |
Description/Format |
---|---|
Workflow |
Name of a workflow. |
Return codes |
---|
"Y" - The workflow is in a statusThis represents the condition of a task (such as active, blocked, generating). with system return codeThe value that represents the result of tasks and script functions. < 1699 or 1701. |
This scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… 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 objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task 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.
When you specify the name of the own object (= the object that is used to process the script element), your system considers this and always returns the return code "Y".
The following example checks whether the workflow FI.DAY.SET is active. The name of the workflow is assigned through a script variableA placeholder for a value within a script..
: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 jobAn Automation Engine object type for a process that runs on a target system. has already been activated. |
|
Returns the number of jobs that are registeredThis is the status of a task that runs within a group and is waiting for its start. in groups. |
Script Elements - Activate Objects
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |