@@ -44,7 +44,7 @@ func TestEmptyWorkflow(t *testing.T) {
4444 u .AssertEquals (t , wflow .Start .GetNext (), wflow .End .GetId ())
4545}
4646
47- // TestSimpleWorkflow creates a simple Workflow with one StartTask, two SimpleTask and one EndTask, executes it and gets the result.
47+ // TestSimpleWorkflow creates a simple Workflow with one StartTask, two FunctionTask and one EndTask, executes it and gets the result.
4848func TestSimpleWorkflow (t * testing.T ) {
4949 //workflow.BranchNumber = 0
5050
@@ -82,7 +82,7 @@ func TestSimpleWorkflow(t *testing.T) {
8282 nextNodeId := prevNode .GetNext ()
8383 currentNode , _ = wflow .Find (nextNodeId )
8484 u .AssertEquals (t , prevNode .GetNext (), currentNode .GetId ())
85- u .AssertTrue (t , prevNode .(* workflow.SimpleTask ).Func == f .Name )
85+ u .AssertTrue (t , prevNode .(* workflow.FunctionTask ).Func == f .Name )
8686 }
8787 prevNode = currentNode
8888 }
@@ -130,8 +130,8 @@ func TestChoiceWorkflow(t *testing.T) {
130130 u .AssertTrue (t , foundS )
131131 u .AssertEquals (t , simple .GetNext (), wflow .End .GetId ())
132132 }
133- case * workflow.SimpleTask :
134- u .AssertTrue (t , n .(* workflow.SimpleTask ).Func == f .Name )
133+ case * workflow.FunctionTask :
134+ u .AssertTrue (t , n .(* workflow.FunctionTask ).Func == f .Name )
135135 }
136136 }
137137}
@@ -179,7 +179,7 @@ func TestChoiceWorkflow_BuiltWithNextBranch(t *testing.T) {
179179 _ , foundS := wflow .Find (s )
180180 u .AssertTrue (t , foundS )
181181 }
182- case * workflow.SimpleTask :
182+ case * workflow.FunctionTask :
183183 u .AssertTrue (t , node .Func == f .Name )
184184 }
185185 }
@@ -214,7 +214,7 @@ func TestWorkflowBuilder(t *testing.T) {
214214 // tasks := workflow.NewNodeSetFrom(workflow.Tasks)
215215 for _ , n := range wflow .Tasks {
216216 switch node := n .(type ) {
217- case * workflow.SimpleTask :
217+ case * workflow.FunctionTask :
218218 u .AssertTrue (t , node .Func == f .Name )
219219 case * workflow.ChoiceTask :
220220 choice := node
@@ -223,8 +223,8 @@ func TestWorkflowBuilder(t *testing.T) {
223223 // specific for this test
224224 alt0 , foundAlt0 := wflow .Find (choice .AlternativeNextTasks [0 ])
225225 alt1 , foundAlt1 := wflow .Find (choice .AlternativeNextTasks [1 ])
226- firstAlternative := alt0 .(* workflow.SimpleTask )
227- secondAlternative := alt1 .(* workflow.SimpleTask )
226+ firstAlternative := alt0 .(* workflow.FunctionTask )
227+ secondAlternative := alt1 .(* workflow.FunctionTask )
228228
229229 u .AssertTrue (t , foundAlt0 )
230230 u .AssertTrue (t , foundAlt1 )
0 commit comments