Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Work Pack Pseudo Attributes, Status Control and Data Access Control

Work Pack Pseudo Attributes, Status Control and Data Access Control

  • Last UpdatedJan 24, 2023
  • 1 minute read

All model elements have a pseudo attribute WRKPKS that returns an array of the WKPACK elements to which that model element has been assigned. This can be used in Reporting and to manage Data Access Control, for example via work pack status.

The unqualified query WRKPKS returns an array of all work packs for the current element, for example:

Wrkpks

1 /CWP_013

2 /Commissioning_Pack_011

It can be qualified with a valid work pack type to return a single reference, for example, WRKPKS('CWP')

Wrkpks /CWP_013

A test for whether the current element is assigned to a work pack type can use an expression, for example:

(NOT unset(WRKPKS('CWP')))

Status Control can be used on WKPACK elements just like any other model element. For example consider a status definition created as WorkPackStatus, with a status value number of 50 for an approved state beyond which the project wants to restrict access.

A test for this condition on the work pack can use an expression, for example:

( ATTRIB STVNUM( /WorkPackStatus ) GE 50 )

Suggested error message: You may not modify an approved work pack.

Similarly a test for this condition on the model element can use an expression, for example:

( ATTRIB STVNUM( /WorkPackStatus ) of WRKPKS('CWP') GE 50 )

Suggested error message: You may not modify a member of an approved work pack.

Note:
Such an expression returns false if the element is not assigned to a work pack of that type.

These expressions can be used as the Condition in Data Access Control.

For further information, refer to Status Control and Data Access Control.

Related Links
TitleResults for “How to create a CRG?”Also Available in