Time for action – adding a method call activity
Now we will see how a method call activity is added to the task flow:
Drag the Method Call activity from the Components section of the Component Palette to the
createEmployeeTaskflow
task flow to see that Component Palette is available from the View menu or use the default keyboard shortcut Ctrl + Shift + P to invoke the palette.In the task flow, we will have the entries as follows:
<task-flow-definition id="createEmployeeFlow"> <default-activity>methodCall1</default-activity> <method-call id="methodCall1"> </method-call> <use-page-fragments/> </task-flow-definition>
fixed-outcome
: When this method is called, the outcome of the Method Call Activity button is provided in thefixed-outcome
property from the property inspector.to-string
: Setting this option totrue
for the method activity will navigate the outcome to the specified outcome, just like calling thetoString()
method from...