Package com.aquima.interactions.portal
Interface IProcessMapping
- All Known Implementing Classes:
ProcessMapping
public interface IProcessMapping
Interface describing the exposed mappings for processes.
- Since:
- 8.4
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the application that contains the process definitions.This method returns the version of the application that contains the process definitions.This method returns the mapper that may be used to map the model of the process engine to the model of this application.This method returns the mapper that may be used to map the model of this application to the model of the process engine.getTaskMapping
(String taskName) Gets the appropriate task mapping.getTaskMapping
(String taskName, InferenceContext context) Gets the appropriate task mapping.
-
Method Details
-
getCaseDataMapping
IMapping getCaseDataMapping()This method returns the mapper that may be used to map the model of the process engine to the model of this application.- Returns:
- The profile mapper, may be null.
-
getCaseUpdateMapping
IMapping getCaseUpdateMapping()This method returns the mapper that may be used to map the model of this application to the model of the process engine.- Returns:
- The profile mapper, may be null.
-
getTaskMapping
Gets the appropriate task mapping.The task mappings are parsed in the definition order and the first one the satisfies the following conditions is returned:
- No precondition is set (
TaskMapping.getPrecondition()
returns null); - A precondition is set and it evaluates to a single boolean value of TRUE.
- Parameters:
taskName
- The task for which the task mapping should be returnedcontext
- The context used to evaluate the precondition expressions against- Returns:
- The task mapping as described above
- Throws:
InvalidStateException
- No task mapping could be found
- No precondition is set (
-
getTaskMapping
Gets the appropriate task mapping.The task mappings are parsed in the definition order and the first one the satisfies the following conditions is returned:
- No precondition is set (
TaskMapping.getPrecondition()
returns null); - Mapping with preconditions are not supported
- Parameters:
taskName
- The task for which the task mapping should be returned- Returns:
- The task mapping as described above
- Throws:
InvalidStateException
- No task mapping could be found or conditions on mapping are used
- No precondition is set (
-
getApplicationName
String getApplicationName()This method returns the name of the application that contains the process definitions.- Returns:
- The name of the application that contains the process definitions.
-
getApplicationVersion
Version getApplicationVersion()This method returns the version of the application that contains the process definitions.- Returns:
- The version of the application that contains the process definitions.
-