Calling workflow from a form

I need to call a workflow in the QuestionLibrary form so that I can save the question and answer in another external resource, after the user modifies the answer to the question.

Other option is to create a complete workflow to replace the change question answer link and manipulate the custom-form.

How do I call a workflow in a form.

Any help is appreciated.

[386 byte] By [_raj] at [2007-11-26 10:48:10]
# 1
Add a button to the form. Specify the workflow URL is the postURL property of the button.
chits98 at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Then how to pass in the input variables to workflow, if so what kind of values can be passed in. I see couple things missing in this approach. Just wanted to check the implementaion.-sFred
sFred at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Well, I was thinking of using the out-of-the box functionality, just insert a work-flow call into the form so that I can do additional things. It is just like the changeuserpassword work flow which is called by the IDM (can be configured in the Process/Form mapping), You can use this work-flow as hook to add additional code. But QuestionLogin form does not have this kind of built-in hook. That is why I am looking for ways to somehow kicking off a work flow.

_raj at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
you can use the following field for calling workflow from a form<Field name='viewOptions.Process'> <Expansion> <s>Workflow Name</s></Expansion> </Field>
amiteshksingh at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
I tries using viewOptions, did not work. Looks like it is an option for ActiveSynch.
_raj at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6
Using the button approach, you can pass simple values to the workflow through the URL string. If you need to pass objects though, then it won't work
chits98 at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 7

Hi,

<Field name='formButton'>

<Display class='Button'>

<Property name='value' value='Save'/>

<Property name='postURL' value='user/processLaunch.jsp?id=FirstTestWorkFlow'/>

<Property name='command' value='Save'/>

</Display>

</Field>

if I save it, it is giving this error "View access denied to 9999121 on process FirstTestWorkFlow".

how i have to fix error. Please tell me.

kumar509@sdgccom at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...
# 8
Hi Kumar,u have to add the W/F name in end user task.xml then only u can call ur W/FThanxShant
Shant at 2007-7-7 3:00:32 > top of Java-index,Web & Directory Servers,Directory Servers...