EccProcess
EccProcess describes a business case: a running or finished process instance, a saved draft or a process definition.
A process instance, a saved process draft or a process definition. Which fields are filled depends on the source: process lists are read from the MongoDB projection ‘ecc_process_instances’, single instances are additionally enriched with live data from the BPM engine, drafts come from ‘ecc_saved’ (state SAVED, processInstanceId prefixed ‘tmp.’) and process definitions only carry processId, processName and version.
import type { EccProcess } from "@ecceene/ui-atm";
Fields
| string | Technical MongoDB document id. Not a business identifier - do not use it to address objects. Example: |
| string | Object type, e.g. process, task, history, process_history, process_node, event. Example: |
| string | Java class name of the object. Example: |
| string | Unique id of the process instance. The only identifier used for instances in the API. Saved drafts use the prefix 'tmp.'. Example: |
| string | Id of the process definition (name of the BPMN process), used to start new instances. Example: |
| string | processId of the root process. Null for root processes. Example: |
| string | processInstanceId of the root process. Null for root processes. |
| string | processInstanceId of the calling process. Null for root processes. |
| Calling process (sub-processes only). Only processInstanceId, processId, processName and state are filled. | |
| Sub-processes started by this instance. Only processInstanceId, processId, processName and state are filled. | |
| list of EccProcessNode | Nodes the instance has passed or is currently in (live data from the BPM engine). |
| Error information if the instance is in error state. | |
| string | Name of the process as defined in the BPMN model. Example: |
| string | Human-readable business key generated at process start from the configured pattern (eccatm.keyindex). Example: |
| string | Version of the process definition. Example: |
| date-time | Due date of the process, if an SLA is defined in the model. |
| ecceene: user who saved the draft (saved drafts only). Set by eccatm-service, not by BAMOE. | |
| string | BAMOE: user who created the instance. |
| string | Last user who changed the instance (live data from the BPM engine). |
| date-time | Time of the last change. |
| date-time | Start time of the instance. |
| date-time | End time of the instance, if completed or aborted. |
| string | Service URL reported by the BPM engine. |
| string | REST endpoint of the process in the BPM engine. Example: |
| string | State of the instance: PENDING, ACTIVE, COMPLETED, ABORTED, SUSPENDED, ERROR. Saved drafts have the state SAVED. Example: |
| object | Business data of the process. Structure depends on the process model, e.g. { "purchase": { ... } }. |
| string | BPMN source of the process definition (schema endpoints only). |
| string | ecceene: free-text note stored with a saved draft. Example: |
| string | Process Instance Description of the model evaluated for this instance by BAMOE (KogitoProcessInstance.getDescription), stored by the history writer in ecc_process_instances. Example: |
| boolean | Result of the consistency check between the MongoDB projection and the live BPM engine data: |
| string | SVG diagram of the process instance (only when requested explicitly). |
| list of string | BAMOE: roles of the instance. |
| string | BAMOE: identity that started the instance. |
| object | BAMOE: execution summary (as delivered by the Data Index). |
| string | BAMOE: id of the cloud event that started the instance. |
| string | BAMOE: source of the cloud event that started the instance. |
| list of string | BAMOE: addons of the process service. |
| object | BAMOE: milestones { id, name, status }. |
| object | BAMOE: process definition { id, name, version, description, endpoint, roles, addons, type }. |
| object | BAMOE: timers { timerId, processId, processInstanceId, nodeInstanceId, description }. |
| string | |
| string | Name of the process instance page in the frontend: src/apps/{eccUiDirectory}/{eccUiPage}.tsx (read-only) Example: |
| string | App folder of the process in the frontend: src/apps/{eccUiDirectory}/ (read-only) Example: |
| boolean | ecceene: true if state is ACTIVE. (read-only) |
| boolean | ecceene: true if state is PENDING. (read-only) |
| boolean | ecceene: true if state is COMPLETED. (read-only) |
| boolean | ecceene: true if state is ABORTED. (read-only) |
| boolean | ecceene: true if state is SUSPENDED. (read-only) |
| boolean | ecceene: true if state is ERROR (BAMOE has no state FAILED). (read-only) |
| boolean | ecceene: true if slaDueDate is in the past. (read-only) |
Fields without a value are left out of the JSON.
TypeScript type
The frontend type EccProcess follows this structure. Only in the TypeScript type (set by the frontend or kept for older data): templateDescription, processStarterPage, taskCount. Delivered by the API but not declared in the TypeScript type: _id, rootProcessId, parentProcessInstanceId, parentProcessInstance, error, slaDueDate, updatedBy, end, serviceUrl, source, diagram, roles, identity, executionSummary, cloudEventId, cloudEventSource, addons, milestones, definition, timers, eccStateActive, eccStatePending, eccStateCompleted, eccStateAborted, eccStateSuspended, eccStateError, eccOverdue.
Where it is used
API Reference | |
API Reference | |
API Reference | |
API Reference | |
API Reference | |
API Reference | |
API Reference | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
Developer Guide | |
System Handbook | |
System Handbook | |
object used in a field of EccProcess | |
object used in a field of EccProcess | |
object used in a field of EccProcess | |
contains EccProcess in |
On this page
- EccProcess