<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
<!--  MemberObjectGroups="#ID#Top" createDate="Mon Feb 04 23:01:59 CST 2008" extensionClass="WFProcess" name="IDM_COURSE_WFP_WorkflowService Create View 1" visibility="runschedule"-->
<TaskDefinition name='IDM_COURSE_WFP_WorkflowService Create View 1' lock='Configurator#1206259434718' creator='Configurator' createDate='1202187719296' lastModifier='Configurator' lastModDate='1206259134640' lastMod='32' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
        <WFProcess name='IDM_COURSE_WFP_WorkflowService Create View 1' maxSteps='0'>
            <Variable name='accountId' value='999010'/>
            <Variable name='firstName' value='Malcom'/>
            <Variable name='lastName' value='Young'/>
            <Variable name='password' value='pa55w0rd'/>
            <Variable name='email' value='malcom.young@idm.com'/>
            
            <Activity id='0' name='start'>
                <Transition to='Create User'/>
                <WorkflowEditor x='59' y='84'/>
            </Activity>
            
            <Activity id='1' name='Create User'>
                <Action id='0' name='Create a View for the User' application='com.waveset.session.WorkflowServices'>
                    <Argument name='op' value='createView'/>
                    <Argument name='type' value='User'/>
                    <Argument name='id' value='$(accountId)'/>
                    <Argument name='viewId' value='User'/>
                </Action>
                <Action id='1' name='Set the values for the View'>
                    <expression>
                        <block>
                            <set name='user.global.accountId'>
                                <ref>accountId</ref>
                            </set>
                            <set name='user.global.password'>
                                <ref>password</ref>
                            </set>
                            <set name='user.global.firstname'>
                                <ref>firstName</ref>
                            </set>
                            <set name='user.global.lastname'>
                                <ref>lastName</ref>
                            </set>
                            <set name='user.global.fullname'>
                                <concat>
                                    <ref>firstName</ref>
                                    <s> </s>
                                    <ref>lastName</ref>
                                </concat>
                            </set>
                            <set name='user.global.email'>
                                <ref>email</ref>
                            </set>
                        </block>
                    </expression>
                </Action>
                <Action id='2' name='Provisioning User' application='com.waveset.provision.WorkflowServices'>
                    <Argument name='op' value='provision'/>
                    <Argument name='user' value='$(newViewUser)'/>
                    <Argument name='noCreate' value='false'/>
                </Action>
                <Transition to='end'/>
                <WorkflowEditor x='278' y='54'/>
            </Activity>
            
            <Activity id='2' name='end'>
                <WorkflowEditor x='476' y='126'/>
            </Activity>
        </WFProcess>
    </Extension>
    <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
</TaskDefinition>
