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]
# 1
Does anyone have a clue what might be going on?
JimBearda at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Anyone know?
JimBearda at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 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

Patrick.Wehingera at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

Thanks for the reply. I realized yesterday this is probably a better way to go about it. I set up the form in the jsp like before, but then added a button with a postURL of the taskLaunch.jsp. This works, but is preventing the form values from reaching the workflow. Does your workflow include the form in it? I should look at implementing it that way...

Thanks!

Jim

JimBearda at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
Is this resolved?
harini@idma at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6

Hi,

using the approach that i posted above it works. What Jim initially tried seems not to work but i think that even if it worked it would be a more complicated way of solving the task.

Many ootb maintainance workflows basically work the same way as the example above does so i guess this is the way it is meant to be done.

Regards,

Patrick

Patrick.Wehingera at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...
# 7

I am doing what Patrick suggested. I built a workflow, then embedded a form into it. I then added a link on the home page to the taskLaunch jsp with the workflow in the url. This displays the form then executes the workflow. It works fine. I am actually working on a new form / workflow atm using the same approach.

JimBearda at 2007-7-9 6:02:04 > top of Java-index,Web & Directory Servers,Directory Servers...