File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ version: '1.0'
110
110
name : Greeting Workflow
111
111
description : Greet Someone
112
112
functions :
113
- - name : greetingFunction
114
- resource : functionResourse
113
+ - name : greetingFunction
114
+ operation : file://myapis/greetingapis.json#greeting
115
115
states :
116
116
- name : Greet
117
117
type : operation
@@ -168,15 +168,13 @@ assertEquals(DefaultState.Type.OPERATION, operationState.getType());
168
168
You can also programmatically create Workflow instances, for example:
169
169
170
170
``` java
171
- Workflow testWorkflow = new Workflow (). withId(" test-workflow" ). withName(" test-workflow-name" ). withVersion(" 1.0" )
172
- .withEvents(new Events (Arrays . asList(
173
- new EventDefinition (). withName(" testEvent" ). withSource(" testSource" ). withType(" testType" ))
174
- ))
171
+ Workflow workflow = new Workflow (). withId(" test-workflow" ). withName(" test-workflow-name" ). withVersion(" 1.0" )
175
172
.withFunctions(new Functions (Arrays . asList(
176
- new FunctionDefinition (). withName(" testFunction" ). withResource(" testResource" ). withType(" testType" ))
177
- ))
173
+ new FunctionDefinition (). withName(" testFunction" )
174
+ .withOperation(" testSwaggerDef#testOperationId" )))
175
+ )
178
176
.withStates(Arrays . asList(
179
- new DelayState (). withName(" delayState" ). withType(DefaultState . Type . DELAY )
177
+ new DelayState (). withName(" delayState" ). withType(DELAY )
180
178
.withStart(
181
179
new Start (). withKind(Start . Kind . DEFAULT )
182
180
)
You can’t perform that action at this time.
0 commit comments