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'
110110name : Greeting Workflow
111111description : Greet Someone
112112functions :
113- - name : greetingFunction
114- resource : functionResourse
113+ - name : greetingFunction
114+ operation : file://myapis/greetingapis.json#greeting
115115states :
116116- name : Greet
117117 type : operation
@@ -168,15 +168,13 @@ assertEquals(DefaultState.Type.OPERATION, operationState.getType());
168168You can also programmatically create Workflow instances, for example:
169169
170170``` 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" )
175172 .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+ )
178176 .withStates(Arrays . asList(
179- new DelayState (). withName(" delayState" ). withType(DefaultState . Type . DELAY )
177+ new DelayState (). withName(" delayState" ). withType(DELAY )
180178 .withStart(
181179 new Start (). withKind(Start . Kind . DEFAULT )
182180 )
You can’t perform that action at this time.
0 commit comments