Case Management is a paradigm for dealing with complex and emerging tasks in a business context. In contrast to Process Management – a complementary paradigm addressed in Appway – Case Management does not entail enforcing a strict, pre-defined sequence of actions to reach a goal. Rather, the Case-based approach requires defining the boundaries within which a user is free to choose from the available options to reach a goal. Cases provide guidance and recommendations (in the form of data and rules), but always leave the final decision on the next step to take up to the expertise of the end-user. Based on the rules and data defined for your Case, it is considered as 'consistent' or 'inconsistent':

It is important to note that Cases and Processes are not mutually exclusive, but can be combined, a notion referred to as the 'Process Spectrum'. Most practical business applications will have Case-like aspects as well as Process-oriented structures which can be implemented in parallel to complement each other.
In the current implementation of Case Management, the presentation layer is rendered automatically by Interaction Channels, which automate the creation and design of the UI, meaning no development effort is required in these areas. The following Interaction Channels are available:
Important! It is recommended to use the solution templates provided by the
'Case' Package when implementing a solution based on Case Management. The solution templates provide functionality for listing all running Subprocesses which were started out of a Case and for managing collaboration (adding/removing collaborators, checking rights, sending notifications etc.).
Cases are integrated into Processes using the Case Task Component, which links to:
- the business logic (via a Case Template)
- the visual appearance of the Case (via a Screen)
- variable assignments
To add a Case Task to a Process:
- Drag and drop the Case Task from the 'Components' panel on the right.
- On the Properties tab of the Case Task:
- Set the Case Template Business Object to use for this Case in the Case Template field.
- Define the Screen which displays the Case in the Screen field.
Note: This Screen must contain a Screen Component of the Interaction Channel type to display the Case.
- On the Variables Assignments tab:
- Assign variables for the defined Screen and Case Template.
Note: It is recommended to set a Swimlane to persist sessions, otherwise the Case is bound to the active session. For further implications of using a Swimlane, see the
Collaboration Tab section.
The Case Template defines the rules for a Case in four logical layers, represented as tabs:
- Controls
- Consistency Rules
- Correctness Rules
- Collaboration
The Case engine evaluates these layers in the following sequence:
- Collaboration > Correctness Rules > Consistency Rules > Controls
This sequence ensures that the results of one layer are available to the other layers as needed. For example, a Case Control (more exact: the Sentry defined for the Control) can rely on the outcome of the Consistency Rules layer to prevent a user from closing a Case if the Case is still in an inconsistent state
The Controls tab allows defining Case Controls. Case Controls define the data context of the Case, i.e. the data to gather during the Case.
In addition, Case Controls can be used to limit the user's course of action within the Case by defining Sentries. A Sentry defines conditions which govern the availability of the Control to users in the used Interaction Channel:
Imposing limitations within a Case is not recommended, but there are situations where this is inevitable, e.g. preventing a user from closing a Case if it is in an inconsistent state.
To create a Case Control:
- Drag it into the Control area of the tab (from the 'Variables' panel on the left or the 'Controls' panel on the right)
- Define its properties. See the following sections for more details on individual Case Controls and their properties.
Case Controls are divided into two groups:
- Data Controls – Primitive, Complex and Collections
- General Controls – End Case Action, Start Subprocess Action and Group Control
All Case Controls share these common properties (accessed via this icon:
):
-
Name – Sets the internal name of the Control.
-
Sentry – Defines conditions which govern the state/availability of the Control for users in the Interaction Channel: enabled, disabled, hidden.
The script checking the conditions must resolve to one of the following three expressions:
CaseControl.SentryState.ENABLED() (default if no expression is defined for a top-level Sentry)CaseControl.SentryState.DISABLED()CaseControl.SentryState.HIDDEN()
Sentries set for parent Controls propagate to their children according to this logic:
- If the Sentry setting for a child element is empty, it inherits the setting of its direct parent.
- If the parent is set to hidden, all child elements are hidden, regardless of their Sentry settings. This is the only case where the parent settings override the settings made for children, in all other cases the settings of the children are applied.
Use the CaseConsistency.Issues() and CaseCorrectness.Issues() functions to check for inconsistencies or incorrectness in the Case via Sentry expressions.
Example 1
Enable a control only when there are no inconsistencies:
If SIZE(CaseConsistency.Issues()) > 0 Then
Return CaseControl.SentryState.DISABLED();
Else
Return CaseControl.SentryState.ENABLED();
End
Example 2
Enable a control only when there are no incorrectnesses:
If SIZE(CaseCorrectness.Issues()) > 0 Then
Return CaseControl.SentryState.DISABLED();
Else
Return CaseControl.SentryState.ENABLED();
End
Example 3
Enable a control only when there are neither inconsistencies nor incorrectnesses:
If SIZE(CaseConsistency.Issues()) == 0 && SIZE(CaseCorrectness.Issues()) == 0 Then
Return CaseControl.SentryState.ENABLED();
Else
Return CaseControl.SentryState.DISABLED();
End
Tip: The Sentry Example snippet can be used as a starting point when writing sentry expressions. Right-click on the Sentry field and select Snippet from the menu to access it.
-
Label – Can be displayed in the Interaction Channel to provide information for the end-user.
-
Extended Label – Can be displayed in the Interaction Channel to provide additional information for the end-user (e.g. a full sentence or a question).
Note: Delete Case Controls via the right-click menu.
Data Controls
Data Controls are bound to variables. Use Data Controls to specify the data that should be gathered in the Case. Data Controls can be created in two ways:
- By dragging variables from the left side 'Variables' panel to the Controls tab (valid locations for dropping are indicated by a blue background when hovering). The Binding field is set accordingly.
- By dragging the according Control from the right side 'Data' panel to create an Unnamed Control. In this case, set the value for the Binding field manually.
Three Data Control types are available:
-
Primitive Data Control

A Primitive Data Control is created for single element variables which are Primitive Types.
-
Complex Data Control

A Complex Data Control is created for Data Classes.
The Complex Data Control governs the complete Data Class, e.g. if you define a Sentry, it is valid for the entire Data Class (all children).
Note: Click on the Unfold button to view the children of a Complex Data Control. This is a one-way action that replaces the Complex Data Control with individual Data Controls for every child. When "unfolding", a new Group Control is added automatically to organize the information and preserve any Sentry that was set for the Complex Data Control. The newly created Controls for the children elements can be moved within the Control structure as needed.
-
Collection Data Control

A Collection Data Control is created for an indexed or named collection. A Collection Data Control defines an iteration over the items inside the collection. You can add/remove items contained inside as needed.
Expand and collapse the elements inside the Collection Data Control using the arrow on the left side of the Control. Children can be either Primitive or Complex Data Controls.
The Iterator properties enable you to configure the labels and sentries for each element of a collection individually by providing an Index Variable, by default i. Nested collections are also supported.
Example 1
If your Collection is a Data Class called 'Address', you can define different labels for each element of the collection in the Label field of the Iterator properties. Use the following code to set "Primary Address" for the first address (the first element of the collection), and "Secondary Address 1", "Secondary Address 2" etc. for all following addresses (the following elements of the collection).
If $i == 1 Then
Return 'Primary Address';
End
Return 'Secondary Address ' & TOSTRING($i - 1);
Example 2
If your Collection is a Data Class called 'Address', you can define different sentries for each element of the collection in the Sentry field of the Address Element Complex Data Control nested below the Iterator. Use the following code to define "Primary Address" (the first element of the collection) to be read-only, while defining "Secondary Address 1", "Secondary Address 2" etc. (the following elements of the collection) to be editable:
If $i == 1 Then
Return CaseControl.SentryState.DISABLED();
End
Return CaseControl.SentryState.ENABLED();
Example 3
If your Collection is a Data Class called 'Address' and one of its properties is called 'country', you can define a sentry for this specific property of the collection. Click on the Unfold button available for the Address Element Complex Data Control to access the individual properties. Now you can set a sentry for the 'country' property in the Sentry field of the country Primitive Data Control. Use the following code to set the 'country' property to read-only in all elements of the collection:
Return CaseControl.SentryState.DISABLED()
Use the following code to set the 'country' property to read-only in only the first element of the collection:
If $i == 1 Then
Return CaseControl.SentryState.DISABLED();
End
Return CaseControl.SentryState.ENABLED();
General Controls
Create these Controls by dragging the according object from the 'Controls' panel on the right. The following Controls are available:
-
End Case Action Control
This Control allows the end-user to end the Case task. Define the Action Value to determine where in the Process flow the end-user continues after ending the Case.
Technical Note: The Token can be moved away from the Case Task only if there are no active Tokens for Subprocesses.
-
Start Subprocess Action Control
This Control allows the end-user to start a Subprocess. Define the Process to use and set the Variable Assignments. Additional options are:
- Hidden – Determines that the activity is not visible as a Workitem in the Worklist.
- Transient – Determines that this activity does not need to be completed in order for this Process or Subprocess to be completed.
- Follow Started Process – Specifies whether the end user is redirected to follow the newly started Subprocess.
Technical Note: When a Subprocess is started from a Case, a new child Token of the Token on the Case Task is created.
-
Group Control
Allows grouping other Case Controls.
-
Conditional Cast Control
Allows specifying sorting, visibility/editability (via a sentry), and labels for child Data Classes in scenarios with parent/child Data Classes. An example would be the Data Class 'Party', containing the property description. Two child Data Classes then inherit from this Data Class:
- 'LegalEntity', with the properties
name and vatId. - 'NaturalPerson', with the properties
familyName and firstName.
When you drag a variable of the 'Party' Data Class type into the Control area, and click on the Unfold button, one Conditional Cast Data Control is created for each of the properties of the child Data Classes to allow for a maximum of customization. For example, you can set individual labels and sentries for each of the properties of the child Data Classes.
Note: You can "consolidate" two or more properties of a given child Data Class under a single Conditional Cast Data Control, if you do not require having individualConditional Cast Data Controls for each of the properties (as created by default when clicking on the Unfold button).
In each of these Controls, the following fields are pre-filled:
- Source Expression – Defines the original variable whose runtime type should be checked (e.g.
$party). - Runtime Type Condition – Data Class defining the condition used for checking the runtime type of the Source Expression (e.g.
NaturalPerson). - Target Variable – If the Runtime Type Condition is
true (i.e. if the Source Expression has a runtime type equal to the Runtime Type Condition), the value of the Source Expression is cast to the Data Class specified in the Runtime Type Condition and the result is made available in the variable set in this field (e.g. $naturalPerson). Using this variable, you can access all of the properties specific to the Data Class specified in Runtime Type Condition.
The fields available in the Conditional Cast Control can also be described as a structured representation of the following code:
Global Party $party;
Party $tmp := $party;
If ISA($tmp, NaturalPerson) Then
NaturalPerson $naturalPerson := CAST(NaturalPerson, $tmp);
End
This code relates to the fields of the Conditional Cast Control in the following way:
- Line 3 –
$party is the Source Expression - Line 4 –
NaturalPerson is the Runtime Type Condition - Line 5 –
$naturalPerson is the Target Variable
The Consistency Rules tab defines the business logic of the Case. This logic implements the rules and constraints that the Case (the data within) must fulfill to be business compliant, defining the purpose of the Case. In other words, if all the rules implemented on the Consistency Rules tab are fulfilled (return true), a Case can be considered consistent. These rules can have different dimensions, e.g. checking if a person has a required minimum age, or if the provided ZIP code is consistent with the standard of the selected country of residence.
Example:
Rule: A credit card owner must be 18 or older. Written as a consistency expression:
Return TIMEDIFF($person.dateOfBirth, TODAY(), 'y') >= 18
It is up to you as the developer implementing the Case to decide if inconsistencies should block users from proceeding to parts of the Case or completing it. Restrictions of this kind can be set on the Controls tab using Sentries and the CaseConsistency.Issues() function.
Note: Rules are sorted alphabetically; their sequence has no influence on the evaluation of rules.
There are two type of consistency rules you can define:
- Data Class
- Expression (Legacy)
A Data Class consistency rule defines a rule for a given Data Class type. The rule is evaluated for every instance of that Data Class, including the instances inside of collections. Use this type of Consistency Rule when defining rules that check the consistency of fields of a given Data Class.
To create a Data Class consistency rule:
- Drag a variable (Data Class or a property of a Data Class) from the left side 'Variables' panel into the Consistency Rules tab. The Data Class is selected automatically and, if you dragged a property of a Data Class, this property is set as an Affected Field.
Alternatively, create a new consistency rule manually by dragging the Data Class control from the 'Consistency Rules' panel on the right side and select the Data Class the rule applies to. - Define the Consistency Expression, which evaluates whether the related portion of the case context is in a consistent state. The expression needs to return
true or false. To access the instance of the bound Data Class you are checking for consistency, use the implicitly defined and automatically set $instance variable.
Example:
Rule: A credit card owner must be 18 or older. Written as a consistency expression for a Data Class consistency rule:
Return TIMEDIFF($instance.dateOfBirth, TODAY(), 'y') >= 18
- Enter an Inconsistency Message which can be displayed in the Interaction Channel if the rule does not evaluate as consistent (
true). - Define one or more Affected Fields. Select a field from the dropdown list and click on Add Field to define it. Affected Fields define where to display the Inconsistency Message in the used Interaction Channel (e.g. as a tooltip).
Note: If you created the Data Class consistency rule by dragging in a property of a Data Class, that property is already defined as an Affected Field.
An Expression (Legacy) consistency rule defines a rule for a given set of properties (properties inside collections are not supported, you can only set a rule for the collection as a whole). The rule is evaluated once every time the Case engine is executed. Use this type of Consistency Rule only when it is not possible to use a Data Class Consistency Rule, for example when a rule affects fields of multiple, separate Data Classes.
To create an Expression (Legacy) consistency rule:
- Drag a variable (primitive not contained in a Data Class) from the left side 'Variables' panel into the Consistency Rules tab, the variable is automatically defined as an Affected Field.
- Define the Consistency Expression, which evaluates whether the related portion of the case context is in a consistent state. The expression needs to return
true or false. - Enter an Inconsistency Message which can be displayed in the Interaction Channel if the rule does not evaluate as consistent (
true). - Define one or more Affected Fields by clicking on Add Binding and entering the variable name. Affected Fields define where to display the Inconsistency Message in the used Interaction Channel (e.g. as a tooltip).
The Correctness Rules tab enforces the formal correctness of individual data entities of the Case. You can create a maximum of one correctness rule per data entity. If an entry is incorrect according to the defined criteria, an error message is displayed in the Interaction Channel, but it is possible to save incorrect input.
Only primitive-type properties of a Data Class can be checked for correctness. These properties can have any collection type (single element, indexed elements, or named elements).
Examples of formal correctness are:
- The format of an e-mail corresponds to RFC 5322.
- Excluding February 30th as a valid date.
- Matching a list of valid values, e.g. a list of currently existing countries.
- Defining allowed value ranges, maximum text length etc.
It is up to you as the developer implementing the Case to decide if incorrectnesses should block users from proceeding to parts of the Case or completing it. Restrictions of this kind can be set on the Controls tab using Sentries and the CaseCorrectness.Issues() function.
Important! Correctness rules are typically domain-independent, which means they should not model any solution-specific business logic such as a making a certain data point mandatory. Create a Consistency Rule for such purposes instead.
To create a correctness rule:
- Drag a variable from the left side 'Variables' panel into the Correctness Rules tab, the Data Class and Property are selected automatically.
Alternatively, create a new correctness rule manually by dragging the Unbound control from the 'Correctness Rules' panel on the right side and set the Data Class and Property the rule applies to. This approach is needed when you define correctness rules for Data Classes not accessible in the 'Variables' panel. For example, this can occur if a variable $v references an instance of a Data Class inheriting from the declared type of $v.
Note: Rules are sorted alphabetically; their sequence has no influence on the evaluation of rules.
Important! Correctness rules based on bindings which were created with Appway versions before 7.2 will continue to work until support of bindings in correctness rules is discontinued with Appway 10. However, only the properties of such old correctness rules can be modified in Appway 7.2 and higher, the binding itself can no longer be modified. We recommend you delete old correctness rules based on bindings and recreate them using the new approach available with Appway 7.2.
- Select the variant for defining the correctness:
- (Optional) Select Allow MultiLine if you expect a long text so that the Interaction Channel can react accordingly (e.g. by displaying a text area instead of a text field).
Note: This option is only available if you select Script Expression in step 2) and the variable type is String.
- (Optional) Define an Error Message which is displayed in the Interaction Channel if the correctness criteria is violated.
If Catalog was selected, correctness is defined by the items in the Catalog. This means that the error message is displayed if the value entered in the Interaction Channel is not available in the Catalog (this includes the case where no value has been selected yet).
Note: Extended Error Message is currently not used.
The Collaboration tab defines users who are eligible to access a Case and the role for which they are eligible.
This means that this tab defines only the users that could, in theory, work on the Case and in which role they could participate. During the lifetime of a Case, usually only a subset of the eligible users will actually collaborate on the Case. Every Case has a clearly defined set of users who work on it, referred to as participants. During the lifetime of a Case, the set of participants can grow or shrink depending on the decision of the Case owner and co-owners.
Warning: The collaboration settings made on this tab are only enforced if the Process containing the Case Task uses a Swimlane (the collaboration settings take precedence over Swimlane settings when regulating access to a Case).
If the Process does not use a Swimlane, the collaboration settings made on this tab are disregarded. This means that any anonymous user can start the Case Task and become the Case owner if an Entry Point to the Process that contains the Case Task has been set. Entry Points are set in the Package containing the Process.
The process of assigning eligible users to work on the Case is controlled by the related Script Functions described in the following sub-section.
There are three Case Roles to which users can be assigned as eligible:
- Owner & Co-Owner – Can edit the case, invite editors and co-owners, and reassign ownership.
Note: Each Case has only one owner, this is the person ultimately responsible for the Case. If a new owner is defined, the previous owner automatically becomes a Co-owner.
- Editor – Can edit the case.
To define eligible users, groups, or roles for the Owner, Co-Owner and Editor roles, use script expressions in the according Select Eligible Users field, e.g.:
['nm','GROUP:Management']:String['ROLE:User']:String
Note: This is the default value for Owner & Co-Owner as well as for Editor, to ensure initial access to the Case.
Dynamic Groups
'Dynamic groups' are created when eligible users become participants and actually collaborate on a Case. A dynamic group exists only as long as the Process Token resides on the Case Task. To allow a participant to access the Process Token on the Case Task, the queue of the Token is always set to a dynamic group. Every time an eligible user becomes (or stops being) a participant, this dynamic group is updated to ensure it always contains all the participants. This dynamic group in a sense "opens the gates" for every participant to work with the Token.
You can view dynamic groups on the Groups tab available via System Configuration > Users/Groups/Roles (ensure the filter in the Type column is set to show dynamic groups). Groups are named according to the syntax: CaseTask_TokenID. The Case Task Groups Cleanup job cleans up dynamic groups associated with Tokens on Case Tasks in Process Instances that have been deleted by an administrator.
Initialization of Dynamic Groups
When the Process Token is moved onto the Case Task, a dynamic group has to be initialized to contain a meaningful set of users. These users see the Workitem corresponding to the Token in their Inbox. This group is initialized to contain the intersection of the set of users in the swimlane expression of the swimlane containing the Case Task and the set of users eligible for the owner role.
The first user who accesses this Token (i.e. starts to work with this Token) becomes the Case owner. At this point the dynamic group is updated to contain only the owner. From this point onwards:
- The swimlane expression is ignored
- Users eligible as participants are based exclusively on the Case collaboration settings
- The dynamic group is updated when eligible users become (or stop being) participants
Note: If the intersection between the users mentioned in the swimlane expression and the eligible owners contains only one user, that user is directly set as the owner (without being required to access the Token to become the owner).
Important! The Process needs to contain a swimlane in order to allow collaboration.
Control which of the users defined as eligible on the Collaboration tab should actually work on the Case using the following scripts (see 'Case' Package for example usages):
CaseCollaboration.AddParticipant(...)
Adds an eligible user to a Case.CaseCollaboration.RemoveParticipant(...)
Removes a user from a Case.CaseCollaboration.Participants(...):Indexed ParticipantInfo
Returns information on users assigned to a Case.CaseCollaboration.EligibleParticipants(...)
Returns users eligible for the given Case role.CaseCollaboration.Permissions.CanAddParticipantWithRole(...)
Returns whether the current user is entitled to add a participant in the given Case role.CaseCollaboration.Permissions.CanRemoveParticipantWithRole(...)
Returns whether the current user is entitled to remove a participant in the given Case role.
See the Script Function Reference for details.
The 'Case' Package provides solution components and utility functions that enhance Appway's native Case Management functionalities. The additional functionality allows you to:
- Manage the Case collaborators; e.g. you can add or remove users as Case collaborators by assigning the according role to them.
- Filter the Subprocesses which are relevant to the Case.
The 'Case' Package contains the 'Showing Running Subprocesses Widget' and 'Case Collaboration Widget' solution templates. You can use these widgets (provided as Screen Includes) directly in your solution, customize them as needed, or use them as an inspiration for building your own widgets. See the following subsections for more details on these widgets.
After downloading and importing the 'Case' Package, the following Packages are available in Appway Studio:
- Case and CaseExamples – contain the Business Objects out of which the widgets are built and examples of their usage.
- DesignSystem and DesignSystemStyles – contain design modules.
The purpose of this widget is to list all running Subprocesses which were started out of a Case.
There are three Screen Include variants available for this purpose:
- As a Data Table – Include_CaseTaskRunningProcessAsDataTable
- As an Entity (for use with Inbox) – Include_CaseTaskRunningProcessAsEntity
- As an Info Table – Include_CaseTaskRunningProcessAsTable
All variants use the CaseTaskGetWorklistSet function, which requires the Process Instance ID and returns all Subprocesses of the ID except for itself.
This widget provides the following functionality:
- Shows current collaborators and their Case role.
- Allows adding and removing collaborators from a Case.
- Provides a visual hint if the user is active in the Case.
- Ensures that the user performing the assignments has the right to do so (is an Owner or Co-Owner) and allows assigning only eligible users (as defined on the Collaboration tab).
- Sends a notification with a link to the Case to newly added collaborators.
The GetUserDisplay function retrieves and displays the available parts of the user name (ID, first name, last name).
There are three groups of Script Functions related to Case Management:
- 'Case Evaluation' Script Functions are intended for use within the evaluation of a Case.
- 'Collaboration' and 'Case Status Query' Script Functions are for use outside of the context of a Case.
The following Script Functions are available within the Case Template Business Object and are intended for use in the context of the evaluation of the Case Engine layers:
CaseConsistency.Issues()
Returns the inconsistencies currently present in the case data context. For use in the Control layer.
Return (Indexed CaseConsistency.Inconsistency)
The currently present inconsistencies.CaseCorrectness.Issues()
Returns the incorrectnesses currently present in the case data context. For use in the Consistency and Control layers.
Return (Indexed CaseCorrectness.Incorrectness )
The currently present incorrectnesses.
The following Script Functions can be used to control collaboration within a Case:
-
CaseCollaboration.AddParticipant(...)
Adds a user as a participant to the collaboration context of the token with the given ID. Returns whether adding the participant has been successful, i.e. if the calling user is entitled to add the given user.
Parameters
- (String) The ID of the token of the collaboration context to which a participant is added.
- (String) The ID of the user to be added as a participant.
- (String) The case role in which the participant is added. One of 'OWNER', 'CO_OWNER', 'EDITOR'.
Return (Boolean)
Whether adding the participant has been successful, i.e. if the calling user is entitled to add the given user.
-
CaseCollaboration.RemoveParticipant(...)
Removes a participant from the collaboration context of the token with the given ID. Returns whether removing the participant has been successful, i.e. if the calling user is entitled to remove the given participant.
Parameters
- (String) The ID of the token of the collaboration context from which a participant is removed.
- (String) The ID of the participant to be removed.
Return (Boolean)
Whether removing the participant has been successful, i.e. if the calling user is entitled to add the given participant.
-
CaseCollaboration.Participants(...):Indexed ParticipantInfo
There are two variants, depending on the parameters specified:
-
Returns information on all current participants in the collaboration context of the given token ID.
Parameters
- (String) The ID of the token of the collaboration context whose participants are queried.
Return (Indexed CaseCollaboration.ParticipantInfo)
Participant information for the collaboration context of the given token ID.
-
Returns information on all current participants having the given case role in the collaboration context of the given token ID.
Parameters
- (String) The ID of the token of the collaboration context whose participants are queried.
- (String) The case role whose participants are queried. One of 'OWNER', 'CO_OWNER', 'EDITOR'.
Return (Indexed CaseCollaboration.ParticipantInfo)
Information on participants with the given case role for the collaboration context of the given token ID.
-
CaseCollaboration.EligibleParticipants(...)
Returns the IDs of the users eligible to assume the given case role in the collaboration context of the given token ID. Returns null if the token is not currently on a Case Task.
Parameters
- (String) The ID of the token of the collaboration context whose eligible users are queried.
- (String) The case role whose eligible users are queried. One of 'OWNER', 'CO_OWNER', 'EDITOR'.
Return (Indexed String)
The IDs of the users eligible to assume the given case role.
-
CaseCollaboration.Permissions.CanAddParticipantWithRole(...)
Returns whether the current user is entitled to add a participant in the given Case role to the collaboration context of the token with the given ID.
Parameters
- (String) The ID of the token of the collaboration context.
- (String) The Case role of the potentially added participant.
Return (Boolean)
Whether the calling user is entitled to add a participant in the given Case role.
-
CaseCollaboration.Permissions.CanRemoveParticipantWithRole(...)
Returns whether the current user is entitled to remove a participant in the given Case role from the collaboration context of the token with the given ID.
Parameters
- (String) The ID of the token of the collaboration context.
- (String) The Case role of the potentially added participant.
Return (Boolean)
Whether the calling user is entitled to remove a participant in the given Case role.
The following Script Functions are available for querying the status of Cases from outside of a Case:
-
CaseWorkItem.GetItemInfo(...)
Returns information on the Case workitem with the given token ID.
Parameters
- (String) The token ID of the queried workitem.
Return (CaseWorkItem.ItemInfo)
Information on the Case workitem with the given token ID. Returns null if the token is not on a CaseTask or does not exist.
-
CaseWorkItem.GetItemInfo(…).getNumberOfInconsistencies(…)
Returns the number of inconsistencies of the Case work item.
Parameters
None
Return (Integer)
The number of inconsistencies or -1 if the Case Engine has not yet been executed for this workitem.
-
CaseWorkItem.GetItemInfo(…).getNumberOfIncorrectnesses(…)
Returns the number of incorrectnesses of the Case work item.
Parameters
None
Return (Integer)
The number of incorrectnesses or -1 if the Case Engine has not yet been executed for this workitem.
- Sentries –
CaseControl.SentryState.ENABLED() or CaseControl.SentryState.DISABLED() or CaseControl.SentryState.HIDDEN() - Consistency expressions –
true or false - Correctness expressions –
true or false
See the descriptions of the individual tabs of the Case Template Business Object for more details.