Approval is a definition of a generic personal confirmation (any - either positive or negative) of anything. The approval could be then assigned to a node or task.
QUERY_FUNCTION approval_list_types: LIST OF STRING
To call the query logged in user shall be associated with a person granted with administrative privileges over whole pbs (ADMIN_TYPE for the person or group where the person is registered)
QUERY_FUNCTION approval_create(subject: v_approval): v_approval
subject |
input parameter of the approval, see v_approval some attributes of the input are ignored, like the following:
|
Returns actual attributes of the newly registered approval (see v_approval)
To call the query logged in user shall be associated with a person granted with reader privileges over whole pbs (READER_TYPE, EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)
QUERY_FUNCTION approval_get(id: INTEGER): v_approval
id | id of the approval instance |
Returns actual data of the required approval (see v_approval)
To call the query logged in user shall be associated with a person granted with reader privileges over whole pbs (READER_TYPE, EDITOR_TYPE, ADMIN_TYPE for the person or group where the person is registered)
QUERY_FUNCTION approval_list(ids: LIST OF INTEGER): LIST OF v_approval
ids | list of interesting properties instance id-s |
Returns list of actual data of the required properties (see v_approval)
QUERY_FUNCTION approval_select( pbs, creator : INTEGER; version, kind : STRING) : LIST OF v_approvalParameters:
pbs | (optional) instance id of parent pbs |
creator | (optional) instance id of person who introduced the approval |
version | (optional) version of PBS where the approval was introduced |
kind | (optional) approval type |
Returns list of found properties (see v_approval)
To call the query logged in user shall be associated with a person granted with administrative privileges over whole pbs (ADMIN_TYPE for the person or group where the person is registered)
QUERY_FUNCTION approval_update(subject: v_approval): v_approval
subject |
updated data of the approval definition to be updated in model (see v_approval) Target instance specified by subject.item.instance_id The following attributes are ignored:
|
Returns actual data of the updated approval definition (see v_approval)
To call the query logged in user shall be associated with a person granted with administrative privileges over whole pbs (ADMIN_TYPE for the person or group where the person is registered)
QUERY_FUNCTION approval_cancel(id: INTEGER): BOOLEAN
id | instance id of the approval to be cancelled |
Returns TRUE if the instance deleted (was not used), FALSE if just cancelled