bpm-crafters / bpm-crafters/process-engine-api

Support subscriptions for expressions

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Kotlin
Stars
21
Forks
5
Avg merge
6d 6h
Merged PRs (30d)
3

Description

### Scenario

Some process-engines do not store business values and therefore do not evaluate expressions (e.g. of flows of exclusive gateways) on their own. They delegate this to the client instead.

### Current Behaviour

Missing possibility to subscribe to expressions.

### Wanted Behaviour

Add another command for subscribing to expressions to be evaluated:

```kotlin
data class SubscribeForExpressionsCmd(
var restrictions: Map,
val processDefinitionKey: String,
val payloadDescription: Set,
val action: (expression: String, payload: Map) -> Any
)
```

Expressions do not belong to task but to processes instead. Therefore the `taskDefinitionKey` changed to `processDefinitionKey`. Additionally the action takes the expression to be resolved and returns the result.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.