SYS_STATE_JP_ACTIVE

Script Function: Checks if a workflow has already been activated.

Syntax

SYS_STATE_JP_ACTIVE ([Workflow])

Syntax

Description/Format

Workflow

Name of a workflow.
Format: AE name, script literal or script variable


Return codes

"Y" - The workflow is in a status with system return code < 1699 or 1701.
"N" - The workflow is in a status with system return code > 1699 and not 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

SYS_STATE_ACTIVE

Checks if an object has already been activated.

SYS_STATE_JOB_ACTIVE

Checks if a job has already been activated.

SYS_STATE_JOBS_IN_GROUP

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