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.




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


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.