Workflow Parameters
ParamTargetValue triples
The workflow can be configured with ParamTargetValue instances.
defaultSets the interval in ms at which the EngineStarterBean checks for changes in the EngineService configuration. This bean is responsible for automatically starting engines.
By default, this interval is 2 minutes. It can be decreased to have a faster startup of engines, at the cost of firing more queries.
See also Engine Node Services
| Param | Target | Value |
|---|---|---|
| workflow.startEngines.interval | default | 5000 |
defaultSets the interval in ms at which the EngineHealthBean checks the health of running engines. This updates the status of EngineNodes and EngineNodeServices. It also recovers claimable workflows in case another node has failed.
By default, this interval is 5 minutes.
See also Actions performed by Health task
| Param | Target | Value |
|---|---|---|
| workflow.checkHealth.interval | default | 60000 |
defaultSets the timeout in ms after which Engine Nodes are considered unresponsive.
By default, this timeout is 10 minutes.
| Param | Target | Value |
|---|---|---|
| workflow.checkHealth.timeout | default | 300000 |
defaultSets the timeout in ms after which unresponsive Engine Nodes are deleted from the database.
By default, this timeout is 24 hours.
| Param | Target | Value |
|---|---|---|
| workflow.checkHealth.cleanup | default | 3600000 |
defaultSets the timeout in ms after which unresponsive Engine Nodes are deleted from the database.
By default, this timeout is 24 hours.
| Param | Target | Value |
|---|---|---|
| workflow.checkHealth.cleanup | default | 3600000 |
Sets the jndi used to find the ExecutorService used by the ExecutorServiceTaskProcessor.
This processor uses an ExecutorService to parallelize tasks in an EngineBean.
To use the ExecutorServiceTaskProcessor, use applicationInstance option experimental.workflow.useExecutorService with value net.democritus.wfe.ExecutorServiceTaskProcessor.
| Param | Target | Value |
|---|---|---|
| workflow.executorService.jndiName | ExecutorServiceTaskProcessor | openejb:Resource/executorService |
WorkflowApplicationSettings properties
The settings can be set by adding a workflow.ns.properties file to the ClassPath.
The workflow Component caches data from the following DataElements because it rarely changes:
- Workflow
- StateTask
- TimeWindow
- TimeWindowGroup
- User
Setting this property sets the timeout for these caches (value should be the time in ms). This can be used to have the configuration be refreshed if changed at runtime.
By default, the timeout is set to 0. This causes the cache to never expire.
config.cache.timeout: 10000