Execution Instance
The execution instance functionality presents long-running services current state or completed services state.
The list presents the deployed services as group/artifact/version.
A long-running instance is defined as a service that is waiting for external input to continue. A decision service that would take 5 seconds to execute would never be considered as long running because it is never waiting for an external input to continue. Though decision service can be presented here as well when environment has Instance history enabled.
|
From the list, clicking on a service brings up the service specific instances view.
Specific service instances
When viewing the running instances of a specific service deployment, the following information is provided:
Created |
The creation timestamp of this instance. |
Name |
The user defined name of the instance. If tags were defined, they are also displayed in that column. |
Updated |
The updated timestamp of this instance. This timestamp represents the last moment the instance reached a wait state. |
State |
The current state of the service instance. Can be: active (), error (), aborted (), completed () |
Active and Completed service instances
When execution environment has Instance history
enabled then execution instances will be displayed in tabs. Active tab for running service instances (in active
or error
state) and Completed tab for already finished service instances in completed
or aborted
state.
Decision services have Completed tab only. |
Instance history can be enabled in Admin product under Execution
menu.
Actions
There are different actions depending on type of service (Workflow, Case or Decision) and the state of the service (Active or Completed) |
Clicking on a row will bring a user interface presenting the details of the resume points that can be used to trigger the service instance.
There are several actions in the last column:
-
View and administrate service instance by clicking on icon
-
Copy instance identifier by clicking on icon
-
Delete an instance by clicking on icon
-
In case instance is in error state it can also be retriggered by clicking on icon
In case of instances in error, when data needs to be modified before retriggering, instance details view offers access to data of the resume point. |
Analytic data
Cloud execution allows to export analytic data defined in the service. Analytic data (expressed as FEEL expressions) are used to capture important data points during service execution. These data points can be exported (as CSV file) by pressing on the Analytic data. Data included in the exported file are
-
analytic data (one per column)
-
service instance id
-
service instance name
-
state of the service instance
View and administrate service instance
Cloud execution allows to open service instance as model to be able to inspect its data and state such as
-
completed activities
-
currently active activities
-
activities in error
On top of that, administrators can also perform operations from within the model:
-
manage currently active tokens (delete the token, move from one activity to another or create new tokens)
-
open form for given token
-
reassign performers of user and manual tasks
-
alter data objects
-
retrigger failed activities in case service instance is in error state
Detailed history view provides trace of execution with information about completion date and time of the activity and in case of user/manual tasks, who completed that task.
A live view of the service instance works best with Audit execution profile enabled. This will provide most up to date information about executed activities.
Audit execution profile can be set during deployment of the service.
|
Auto refresh
Service instances are automatically refreshed based on changes in the runtime environment this cloud execution is connected to. With that, instances are reloaded on the page as soon as new instances are added or deleted.
Auto refresh respects current filter and pagination settings to avoid unneeded changes of the content. |
Auto refresh can also be disabled by turning off Auto refresh
switch at the top of the page. Auto refresh setting is remembered.
PermaLink to specific service instances
To simplify access from outside, specific service instances can also be accessed with permalink.
where:
-
host - is the host (and optionally port) of Digital Enterprise Suite or Digital Distributed Container
-
prod - is the environment service is deployed to
-
bpmn - is the type of the service, allowed values are (
bpmn
,cmmn
) -
finance - is the group of the service
-
payroll-service - is the artifact of the service
-
1.0 - is the version of the service (
latest
can also be used)
Migrate service instances
Service instances that are long-running can be active for days, weeks, months or even years. During the lifetime of the service instance, there might be a newer version of the service deployed. At the time when new version is deployed, administrator of that service can decide what to do with currently active instances:
-
leave them on the version of the service they started with
-
migrate them to newer version
Ideally, when possible, instances should be left to complete on the version they were started. Migrating service instances to a different version carries risks and needs to be done only if required (e.g., legal requirements, critical problem in previous version). When filtering the instance view, it is possible to migrate only some of the service instances.
The migration of service instance from one version to another will not affect the instance data objects or case file items. A manual data update may be required in migrations where the data aspect of the service changed. |
A wizard guides the migration and validate the compatibility between the two versions for the migration. It also offers an opportunity to provide a mapping for definition mismatches.
Consult the dedicated Instance migration page to learn about the technical details involved.