<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="./spec.xsl" ?>

<spec title="Orchestration Milestone 4 Orch Modeling Test Specification" version="1.0" author = "Mikhail Kondratyev" author-email="mikk@netbeans.org"  last-updated = "23 May 2006">
<intro>This specification describes the modeling of some simple BPEL processes that involve various BPEL combinations.
</intro>

<caseblock name="Modeling BPEL processes">  
<purpose>Verify various BPEL constructs can be created in the Designer</purpose>
<setup>Start the IDE. Please create a new BPEL modules for every new testcase. Please delete everything from the new process</setup> 

<usecase name="Flow with If">
<action>Create new BPEL module, name it FlowIf_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Flow activity to the FlowIf_1_1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Flow1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the If1 activity from palette</action>
<action>Set name Flow2 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Flow2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Flow1 activity from palette</action>
<action>Set name If2 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Sequence1 activity from palette</action>
<action>Set name Flow3 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Flow3 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Flow with Pick and Scope">
<action>Create new BPEL module, name it FlowPick_Scope_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Flow activity to the FlowPick_Scope_1_1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Flow1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New OnMessage pattern should be created at specified location.</result>
<action>Drag new Flow activity to the newly created activity from palette</action>
<action>Set name Flow2 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Flow2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Flow1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Scope1 activity from palette</action>
<action>Set name Flow3 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Flow3 activity from palette</action>
<action>Set name Empty2 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Flow with While and Sequence">
<action>Create new BPEL module, name it FlowWhile_Sequence_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Flow activity to the FlowWhile_Sequence_1_1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Flow1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the While1 activity from palette</action>
<action>Set name Flow3 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Flow3 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Flow1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Sequence1 activity from palette</action>
<action>Set name Flow2 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="If with Flow">
<action>Create new BPEL module, name it IfFlow_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new If activity to the IfFlow_1_1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the If1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Flow1 activity from palette</action>
<action>Set name If2 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the If2 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Sequence1 activity from palette</action>
<action>Set name Flow2 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Flow2 activity from palette</action>
<action>Set name If3 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the If3 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Flow2 activity from palette</action>
<action>Set name If4 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the If4 activity from palette</action>
<action>Set name Empty2 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="If with Pick and Scope">
<action>Create new BPEL module, name it IfPick_Scope_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new If activity to the IfPick_Scope_1_1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the If1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Scope1 activity from palette</action>
<action>Set name If2 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the If2 activity from palette</action>
<action>Set name Empty2 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the If1 pattern and choose Add ElseIf in context menu.</action>
<action>Set name  for the new pattern.</action>
<result>New ElseIf pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Sequence1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New OnMessage pattern should be created at specified location.</result>
<action>Drag new If activity to the newly created activity from palette</action>
<action>Set name If3 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the If3 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="If with While and Sequence">
<action>Create new BPEL module, name it IfWhile_Sequence_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new If activity to the IfWhile_Sequence_1_1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the If1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the While1 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Sequence1 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Pick with If and Flow">
<action>Create new BPEL module, name it PickIf_Flow_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Pick activity to the PickIf_Flow_1_1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Flow activity to the newly created activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Flow1 activity from palette</action>
<action>Set name Pick2 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick2 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Empty activity to the newly created activity from palette</action>
<action>Set name Empty2 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onAlarm branch' in context menu.</action>
<result>New onAlarm pattern should be created at specified location.</result>
<action>Drag new If activity to the newly created activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the If1 activity from palette</action>
<action>Set name Pick3 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick3 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Empty activity to the newly created activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Pick with Scope and While">
<action>Create new BPEL module, name it PickScope_While_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Pick activity to the PickScope_While_1_1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new While activity to the newly created activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the While1 activity from palette</action>
<action>Set name Pick3 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick3 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Empty activity to the newly created activity from palette</action>
<action>Set name Empty2 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onAlarm branch' in context menu.</action>
<result>New onAlarm pattern should be created at specified location.</result>
<action>Drag new Scope activity to the newly created activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Scope1 activity from palette</action>
<action>Set name Pick2 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick2 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Empty activity to the newly created activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Pick with Sequence">
<action>Create new BPEL module, name it PickSequence_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Pick activity to the PickSequence_1_1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Sequence1 activity from palette</action>
<action>Set name Pick2 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick2 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Wait activity to the newly created activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onAlarm branch' in context menu.</action>
<result>New onAlarm pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence2 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Sequence2 activity from palette</action>
<action>Set name Pick3 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick3 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Throw activity to the newly created activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Complex Scope">
<action>Create new BPEL module, name it ScopeComplex_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopeComplex_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Scope1 activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Scope2 activity from palette</action>
<action>Set name Scope3 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Scope3 activity from palette</action>
<action>Set name Scope4 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Scope4 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the While1 activity from palette</action>
<action>Set name Scope5 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Scope5 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Scope with Flow">
<action>Create new BPEL module, name it ScopeFlow_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopeFlow_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Scope1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Flow1 activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Scope2 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Scope with If">
<action>Create new BPEL module, name it ScopeIf_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopeIf_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Scope1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the If1 activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Scope2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the If1 pattern and choose Add ElseIf in context menu.</action>
<action>Set name  for the new pattern.</action>
<result>New ElseIf pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the newly created activity from palette</action>
<action>Set name Scope3 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the Scope3 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Sequence1 activity from palette</action>
<action>Set name Scope4 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Scope with Pick">
<action>Create new BPEL module, name it ScopePick_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopePick_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Scope1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Scope activity to the newly created activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Assign activity to the Scope2 activity from palette</action>
<action>Set name Assign1 for the new pattern.</action>
<result>New Assign pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Scope with Sequence">
<action>Create new BPEL module, name it ScopeSequence_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopeSequence_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Scope1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Sequence1 activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Scope2 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Scope with While">
<action>Create new BPEL module, name it ScopeWhile_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Scope activity to the ScopeWhile_1_1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Scope1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the While1 activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Scope2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Complex Sequence">
<action>Create new BPEL module, name it SequenceComplex_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceComplex_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Main activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence1 activity from palette</action>
<action>Set name Sequence3 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence3 activity from palette</action>
<action>Set name Sequence4 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence4 activity from palette</action>
<action>Set name Sequence5 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Sequence5 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Scope1 activity from palette</action>
<action>Set name Sequence6 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence6 activity from palette</action>
<action>Set name Sequence7 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Main activity from palette</action>
<action>Set name Sequence2 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Sequence2 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the While1 activity from palette</action>
<action>Set name Sequence8 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Sequence with Flow">
<action>Create new BPEL module, name it SequenceFlow_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceFlow_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the Main activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Flow1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Sequence1 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Flow1 activity from palette</action>
<action>Set name Sequence2 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Sequence2 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Sequence with If">
<action>Create new BPEL module, name it SequenceIf_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceIf_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Main activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the If1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Sequence1 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Right click on the If1 pattern and choose Add ElseIf in context menu.</action>
<result>New ElseIf pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the newly created activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Sequence2 activity from palette</action>
<action>Set name Sequence2 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the Sequence2 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Sequence with Pick">
<action>Create new BPEL module, name it SequencePick_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequencePick_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Main activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Sequence1 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence2 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onAlarm branch' in context menu.</action>
<result>New onAlarm pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence3 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the Sequence3 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onAlarm branch' in context menu.</action>
<result>New onAlarm pattern should be created at specified location.</result>
<action>Drag new Sequence activity to the newly created activity from palette</action>
<action>Set name Sequence4 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Sequence4 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Sequence with Scope">
<action>Create new BPEL module, name it SequenceScope_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceScope_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Main activity from palette</action>
<action>Set name Scope2 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Main activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Scope1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Sequence1 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="A simple Sequence">
<action>Create new BPEL module, name it SequenceSimple_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceSimple_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Assign activity to the Main activity from palette</action>
<action>Set name Assign1 for the new pattern.</action>
<result>New Assign pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Main activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the Main activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the Main activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the Main activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Main activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the Main activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new Flow activity to the Main activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the Main activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the Main activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Sequence with While">
<action>Create new BPEL module, name it SequenceWhile_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the SequenceWhile_1_1 activity from palette</action>
<action>Set name Main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Main activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the While1 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the Sequence1 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Complex While">
<action>Create new BPEL module, name it WhileComplex_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the WhileComplex_1_1 activity from palette</action>
<action>Set name qwe for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the qwe activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the While1 activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the While2 activity from palette</action>
<action>Set name While3 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the While3 activity from palette</action>
<action>Set name While4 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to the While4 activity from palette</action>
<action>Set name Sequence1 for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Sequence1 activity from palette</action>
<action>Set name While5 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="While with Flow">
<action>Create new BPEL module, name it WhileFlow_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new While activity to the WhileFlow_1_1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Flow activity to the While1 activity from palette</action>
<action>Set name Flow1 for the new pattern.</action>
<result>New Flow pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Flow1 activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the While2 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Flow1 activity from palette</action>
<action>Set name While3 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the While3 activity from palette</action>
</usecase>

<usecase name="While with If">
<action>Create new BPEL module, name it WhileIf_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new While activity to the WhileIf_1_1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new If activity to the While1 activity from palette</action>
<action>Set name If1 for the new pattern.</action>
<result>New If pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the If1 activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the While2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Right click on the If1 pattern and choose Add ElseIf in context menu.</action>
<result>New ElseIf pattern should be created at specified location. </result>
<action>Drag new While activity to the newly created activity from palette</action>
<action>Set name While3 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the While3 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Drag new Sequence activity to Else section from palette</action>
<action>Set name  for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Sequence1 activity from palette</action>
<action>Set name While4 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="While with Pick_1.bpel">
<action>Create new BPEL module, name it WhilePick_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new While activity to the WhilePick_1_1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Pick activity to the While1 activity from palette</action>
<action>Set name Pick1 for the new pattern.</action>
<result>New Pick pattern should be created at specified location. Name should be set</result>
<action>Right click on the Pick1 pattern and choose 'Add onMessage branch' in context menu.</action>
<result>New onMessage pattern should be created at specified location.</result>
<action>Drag new While activity to the newly created activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the While2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="While with Scope">
<action>Create new BPEL module, name it WhileScope_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new While activity to the WhileScope_1_1 activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Scope activity to the While1 activity from palette</action>
<action>Set name Scope1 for the new pattern.</action>
<result>New Scope pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the Scope1 activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
</usecase>

<usecase name="Simple While">
<action>Create new BPEL module, name it WhileSimple_1. Open BPEL in designer. Delete everything from the process</action>
<action>Drag new Sequence activity to the WhileSimple_1_1 activity from palette</action>
<action>Set name main for the new pattern.</action>
<result>New Sequence pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the main activity from palette</action>
<action>Set name While1 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Assign activity to the While1 activity from palette</action>
<action>Set name Assign1 for the new pattern.</action>
<result>New Assign pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the main activity from palette</action>
<action>Set name While2 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Empty activity to the While2 activity from palette</action>
<action>Set name Empty1 for the new pattern.</action>
<result>New Empty pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the main activity from palette</action>
<action>Set name While3 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Throw activity to the While3 activity from palette</action>
<action>Set name Throw1 for the new pattern.</action>
<result>New Throw pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the main activity from palette</action>
<action>Set name While4 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new While activity to the main activity from palette</action>
<action>Set name While5 for the new pattern.</action>
<result>New While pattern should be created at specified location. Name should be set</result>
<action>Drag new Wait activity to the While5 activity from palette</action>
<action>Set name Wait1 for the new pattern.</action>
<result>New Wait pattern should be created at specified location. Name should be set</result>
</usecase>
</caseblock>
</spec>
