How do I trigger approval?

Hi,

I have made a form that is available on the end user menu. This form allows users to select roles from a list that they want to have.

I can post this information to a workflow (i.e. their account id and roles they want) but I can't figure out how I get the changes to require approval.

The roles have approvers assigned to them but I am not sure what the workflow needs to do. I have tried to check out the user view and checkin having changed user.waveset.roles but it doesnt trigger approval and doesnt update the user view.

Any ideas would be greatly appreciated.

[602 byte] By [s6craig] at [2007-11-26 8:52:06]
# 1
Are you using the BPE to edit your workflow? There, you can add a new Approval activity in the flow, which can receive arguments such as the approvers, timeouts, escalators, forms etc. Is that what you need?
JoaoGuilhermeDelValle at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
I made a copy of the Update User workflow (which calls approval etc) and renamed it. From here I got my form to submit to the new workflow and then I was able to trigger approvals successfully.Thanks.
s6craig at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

i have a similar case...

except that i am assigning a resource to the end user instead of a role...

how do i call the approval flow

u said we can use the Update user workflow

now basically i want to pass these three variables

the end user name

the approver name

and the resource name

any idea how to do this?

aha_neo at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

Hey,

I assume you have a form which somehow captures/works out these three pieces of information you talk about...

the end user name (lets say you called this endUserName)

the approver name (lets say you called this approverName)

and the resource name (lets say you called this resourceName)

You would need to pass these into a workflow using a link on the form. The link field on the form has a 'URL' attribute which should contain what jsp to send the info to, the 'id' attribute should tell the link what workflow to use, and the 'arguments' attribute needs to contain the variables you want to pass to the workflow append 'op_' to the front of each of the variable names e.g.

<Field name='Submit'>

<Display class='Link'>

<Property name='URL' value='user/processLaunch.jsp?newView=true'/>

<Property name='id' value='My Update User'/>

<Property name='arguments'>

<map>

<s>op_endUserName</s>

<ref>endUserName</ref>

<s>op_approverName</s>

<ref>approverName</ref>

<s>op_resourceName</s>

<ref>resourceName</ref>

</map>

</Property>

</Display>

</Field>

Once inside the workflow you refer to the variables passed in without 'op_'. This now means you have access to the information you need and can make changes to the user view etc.

If I have misunderstood your question then I apologise. Let me know how you get on.

s6craig at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
well i am not able to pass the accoutnId from the end user Menu to the workflow that i am executing on clicking the link
aha_neo at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6
I need to see the code you have written to understand anymore. Do you have an example.
s6craig at 2007-7-6 22:44:58 > top of Java-index,Web & Directory Servers,Directory Servers...