Skip to content

Commit 5d49450

Browse files
committed
docs
1 parent f0e3e04 commit 5d49450

File tree

6 files changed

+484
-413
lines changed

6 files changed

+484
-413
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,4 @@ ModelManifest.xml
246246
*.migration_in_place_backup
247247
.idea/.idea.WorkflowCore/.idea
248248
riderModule.iml
249+
.DS_Store

docs/activities.md

+38-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ In this example the workflow will wait for `activity-1`, before proceeding. It
77
Then we create a worker to process the queue of activity items. It uses the `GetPendingActivity` method to get an activity and the data that a workflow is waiting for.
88

99

10-
1110
```C#
1211
public class ActivityWorkflow : IWorkflow<MyData>
1312
{
@@ -47,4 +46,41 @@ The JSON representation of this step would look like this
4746
},
4847
"Outputs": { "Value2": "step.Result" }
4948
}
50-
```
49+
```
50+
51+
## JSON / YAML API
52+
53+
The `Activity` step can be configured using inputs as follows
54+
55+
| Field | Description |
56+
| ---------------------- | --------------------------- |
57+
| CancelCondition | Optional expression to specify a cancel condition |
58+
| Inputs.ActivityName | Expression to specify the activity name |
59+
| Inputs.Parameters | Expression to specify the parameters to pass the activity worker |
60+
| Inputs.EffectiveDate | Optional expression to specify the effective date |
61+
62+
63+
```json
64+
{
65+
"Id": "MyActivityStep",
66+
"StepType": "WorkflowCore.Primitives.Activity, WorkflowCore",
67+
"NextStepId": "...",
68+
"CancelCondition": "...",
69+
"Inputs": {
70+
"ActivityName": "\"my-activity\"",
71+
"Parameters": "data.SomeValue"
72+
}
73+
}
74+
```
75+
```yaml
76+
Id: MyActivityStep
77+
StepType: WorkflowCore.Primitives.Activity, WorkflowCore
78+
NextStepId: "..."
79+
CancelCondition: "..."
80+
Inputs:
81+
ActivityName: '"my-activity"'
82+
EventKey: '"Key1"'
83+
Parameters: data.SomeValue
84+
85+
```
86+

0 commit comments

Comments
 (0)