XSLT Function IsInState

Returns true if the currentStateValue corresponds to targetStateId. The function is necessary to be used when you need to compare some concrete state with state group.

NAMESPACE

xmlns:AS="http://schema.advantages.cz/AsapFunctions"

SYNTAX

string IsInRole(string entityId, string fieldId, string currentStateValue, string targetStateId)

PARAMETERS

Name Description
entityId Id (Guid) of entity which has a statemachine field.
fieldId Id (Guid) of entity field (with status values) which is based the state machine on.
currentStateValue State value to test (Guid). It’s not the model element id but concrete data value representation of a state.
targetStateId Id of target state model element (Guid) to compare the currentStateValue to. Can be either a concrete state or state group model element.