Package org.imixs.workflow.bpmn
Class BPMNModel
java.lang.Object
org.imixs.workflow.bpmn.BPMNModel
- All Implemented Interfaces:
Model
The BPMNModel implements the Imixs Model Interface. The class is used by the
class BPMNModelHandler.
- Author:
- rsoika
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEvent
(ItemCollection aentity) Adds a ProcessEntiy into the process listprotected void
addTask
(ItemCollection entity) Adds a ProcessEntiy into the process listfindAllEventsByTask
(int processid) Returns a list of all events for a given taskID.Returns a list of all tasks.findTasksByGroup
(String group) Returns a list of tasks filtered by the workflow group (txtWorkflowGroup).Returns the model profile entityThis method returns all Tasks followed by a End eventgetEvent
(int processid, int activityid) Returns a Event by its Id and Task-ID.Returns all Group definitions.byte[]
Returns the raw data of the BPMN filegetStartEvents
(int taskID) This method returns start Events for a given Start Task.This method returns all Tasks coming from a Start eventgetTask
(int taskid) Returns a Task by its Id.Returns the model version.void
initStartEvent
(ItemCollection workitem) This method assigns a startTask and a startEvent to a given workitem.protected void
setDefinition
(ItemCollection profile) void
setRawData
(byte[] data) Set the raw data of the bpmn source file
-
Field Details
-
TASK_ITEM_NAME
- See Also:
-
TASK_ITEM_DOCUMENTATION
- See Also:
-
TASK_ITEM_WORKFLOW_SUMMARY
- See Also:
-
TASK_ITEM_WORKFLOW_ABSTRACT
- See Also:
-
TASK_ITEM_APPLICATION_EDITOR
- See Also:
-
TASK_ITEM_APPLICATION_ICON
- See Also:
-
TASK_ITEM_APPLICATION_TYPE
- See Also:
-
TASK_ITEM_ACL_OWNER_LIST
- See Also:
-
TASK_ITEM_ACL_OWNER_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_READACCESS_LIST
- See Also:
-
TASK_ITEM_ACL_READACCESS_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_WRITEACCESS_LIST
- See Also:
-
TASK_ITEM_ACL_WRITEACCESS_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_UPDATE
- See Also:
-
EVENT_ITEM_NAME
- See Also:
-
EVENT_ITEM_DOCUMENTATION
- See Also:
-
EVENT_ITEM_ACL_OWNER_LIST
- See Also:
-
EVENT_ITEM_ACL_OWNER_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_READACCESS_LIST
- See Also:
-
EVENT_ITEM_ACL_READACCESS_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_WRITEACCESS_LIST
- See Also:
-
EVENT_ITEM_ACL_WRITEACCESS_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_UPDATE
- See Also:
-
EVENT_ITEM_WORKFLOW_RESULT
- See Also:
-
EVENT_ITEM_WORKFLOW_PUBLIC
- See Also:
-
EVENT_ITEM_WORKFLOW_PUBLIC_ACTORS
- See Also:
-
EVENT_ITEM_READACCESS
- See Also:
-
EVENT_ITEM_HISTORY_MESSAGE
- See Also:
-
EVENT_ITEM_MAIL_SUBJECT
- See Also:
-
EVENT_ITEM_MAIL_BODY
- See Also:
-
EVENT_ITEM_MAIL_TO_LIST
- See Also:
-
EVENT_ITEM_MAIL_TO_LIST_MAPPING
- See Also:
-
EVENT_ITEM_MAIL_CC_LIST
- See Also:
-
EVENT_ITEM_MAIL_CC_LIST_MAPPING
- See Also:
-
EVENT_ITEM_MAIL_BCC_LIST
- See Also:
-
EVENT_ITEM_MAIL_BCC_LIST_MAPPING
- See Also:
-
EVENT_ITEM_RULE_ENGINE
- See Also:
-
EVENT_ITEM_RULE_DEFINITION
- See Also:
-
EVENT_ITEM_REPORT_NAME
- See Also:
-
EVENT_ITEM_REPORT_PATH
- See Also:
-
EVENT_ITEM_REPORT_OPTIONS
- See Also:
-
EVENT_ITEM_REPORT_TARGET
- See Also:
-
EVENT_ITEM_VERSION_MODE
- See Also:
-
EVENT_ITEM_VERSION_EVENT
- See Also:
-
EVENT_ITEM_TIMER_ACTIVE
- See Also:
-
EVENT_ITEM_TIMER_SELECTION
- See Also:
-
EVENT_ITEM_TIMER_DELAY
- See Also:
-
EVENT_ITEM_TIMER_DELAY_UNIT
- See Also:
-
EVENT_ITEM_TIMER_DELAY_BASE
- See Also:
-
EVENT_ITEM_TIMER_DELAY_BASE_PROPERTY
- See Also:
-
-
Constructor Details
-
BPMNModel
public BPMNModel()
-
-
Method Details
-
getRawData
public byte[] getRawData()Returns the raw data of the BPMN file- Returns:
-
setRawData
public void setRawData(byte[] data) Set the raw data of the bpmn source file- Parameters:
rawData
-
-
getVersion
Description copied from interface:Model
Returns the model version.- Specified by:
getVersion
in interfaceModel
- Returns:
-
getDefinition
Returns the model profile entity- Specified by:
getDefinition
in interfaceModel
- Returns:
-
getStartTasks
This method returns all Tasks coming from a Start event- Returns:
-
getEndTasks
This method returns all Tasks followed by a End event- Returns:
-
getStartEvents
This method returns start Events for a given Start Task.If the task is not a start task, the method returns null!
If one of the events is connected to the BPMN:startEvent then the method returns this event only!
In case of none event is connected to the BPMN:startEvent then the method returns all events which are not follow up events
- Returns:
-
getTask
Description copied from interface:Model
Returns a Task by its Id.- Specified by:
getTask
in interfaceModel
- Returns:
- ItemCollection
- Throws:
ModelException
-
getEvent
Description copied from interface:Model
Returns a Event by its Id and Task-ID.- Specified by:
getEvent
in interfaceModel
- Returns:
- ItemCollection
- Throws:
ModelException
-
getGroups
Description copied from interface:Model
Returns all Group definitions. -
findAllTasks
Returns a list of all tasks. The result set is sorted by taskID. The list is a clone of the internal map values!- Specified by:
findAllTasks
in interfaceModel
- Returns:
- list of tasks
-
findAllEventsByTask
Returns a list of all events for a given taskID. The result set is sorted by event id (numactivityID)- Specified by:
findAllEventsByTask
in interfaceModel
- Returns:
- list of tasks
-
findTasksByGroup
Returns a list of tasks filtered by the workflow group (txtWorkflowGroup). The result set is sorted by taskID.- Specified by:
findTasksByGroup
in interfaceModel
- Returns:
-
initStartEvent
This method assigns a startTask and a startEvent to a given workitem.The method updates the following items
- $modelversion
- $taskid
- $eventid
In case a $taskID or $eventID is already assigned, the method did not modify the $taskID or $eventID.
- Throws:
ModelException
-
setDefinition
-
addTask
Adds a ProcessEntiy into the process list- Parameters:
entity
-- Throws:
ModelException
-
addEvent
Adds a ProcessEntiy into the process list- Parameters:
entity
-- Throws:
ModelException
-