viewOptions.process not working
Howdy folks.
I am making a new page that I want to have call a custom workflow. I have done this in the past with end users pages, so I just copied / modified my old end user page to try and achieve this. I wrote a custom form, and referenced that for from the jsp. I did not modify my system config in any way. I then dropped this jsp in the account directory and it loads just fine when I mannually enter the URL. In the form, I added a field with no type and a name of 'viewOptions.Process'. I then set the expansion element of the field to my custom workflow. When I hit Save on the jsp page, it is not launching my custom workflow. I verified this both by lack of logging output and by watching the debugger.What gives? Do I need a system config entry somewhere? Is it bad to use the end user custom modify page since I am placing it in the admin account area?
Any help or suggestions are welcomed.
Thank you!
Jim
[953 byte] By [
JimBearda] at [2007-11-26 18:27:54]

# 3
Hi,
why don't you use taskLaunch.jsp (or a modified clone of that) to launch your workflow and embed your form in the workflow.
<TaskDefinition name='TestWF' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
<Form>
<Field name='accountId'>
<Display class='Text'>
<Property name='title' value='accountId'/>
</Display>
</Field>
<Field name='email'>
<Display class='Text'>
<Property name='title' value='Email'/>
</Display>
</Field>
</Form>
<Extension>
<WFProcess name='TestWF' maxSteps='0'>
<Activity id='0' name='start'>
<Transition to='change email'/>
<WorkflowEditor x='61' y='97'/>
</Activity>
<Activity id='1' name='change email'>
<Variable name='user'/>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='Form' value='Empty Form'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(accountId)'/>
<Return from='view' to='user'/>
</Action>
<Action id='1' name='set email'>
<expression>
<set name='user.accounts[Lighthouse].email'>
<ref>email</ref>
</set>
</expression>
</Action>
<Action id='2' application='com.waveset.provision.WorkflowServices'>
<Argument name='op' value='reProvision'/>
<Argument name='user' value='$(user)'/>
</Action>
<Transition to='end'/>
<WorkflowEditor x='123' y='184'/>
</Activity>
<Activity id='2' name='end'>
<WorkflowEditor x='201' y='278'/>
</Activity>
</WFProcess>
</Extension>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</TaskDefinition>
Message was edited by:
Patrick.Wehinger