how a process is launched from JSP in IdM 7.0?

I am trying to find out how to launch a process from JSP page so that I can add my own workflow to the JSP page or even creating my own JSP pags launching my own process.

I found an exmpale in the application:

C:\tomcat\webapps\idm\user\processLaunch.jsp

which is able to launch the following processes defined in System Configuration Object:

<Attribute name='endUserUpdateGroups' value='End User Update Groups'/>

<Attribute name='endUserUpdateMyGroups' value='End User Update My Groups'/>

<Attribute name='endUserUpdateMyResources' value='End User Update My Resources'/>

<Attribute name='endUserUpdateMyRoles' value='End User Update My Roles'/>

<Attribute name='endUserUpdateResources' value='End User Update Resources'/>

<Attribute name='endUserUpdateRoles' value='End User Update Roles'/>

In the jsp code, I see the following line:

<jsp:useBean id="form" scope="page"

class="com.waveset.ui.web.task.TaskLaunchForm"/>

However I do not see where the process name is referenced, then at the end, I see:

String url = form.process(requestState);

which seems to load the process at last.

Can anyone explain to me?

Thank you.

[1305 byte] By [thu26a] at [2007-11-26 14:53:02]
# 1

I think TaskLaunchForm looks at the "id" parameter passed to the jsp for the task to be launched. The id should be the name of the workflow (spaces replaced by + sign).

For example in Tomcat:

http://localhost:8080/idm/user/processLaunch.jsp?id=End+User+Update+Groups should launch the first workflow in your list.

Does this help?

-Adi.

adimuta at 2007-7-8 8:41:19 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Your response confirmed what I guessed. I will try to launch my own workflow like that. Did you do something similar before?

It's just there is no explicit code passing the id value to the object, I do not see how the jsp will be able to load the process. I am just afraid I missed something that's handled behind the scene. Then when I copy the way they do it, my customized process is not known by the system, then of course I will fail.

I will keep you posted if that works.

thu26a at 2007-7-8 8:41:19 > top of Java-index,Web & Directory Servers,Directory Servers...