[JBoss jBPM] - Re: jBPM on GlassFish - HTTP status 500
by naruszef
"villatore" wrote : And the solution, wasssss??????? for run jBPM under other Java Aplication Server.
Hm solution - I think that it's not the simpliest way, but it works (almost):
Configure hibernate - easiest one :)
In deploy folder - ant customize.console.for.tomcat
In folder "target" You have to add some libraries - now I don't remember which ones - but I think that, it was libraries similar like in tomcat/websphere.
In file web.xml - change authorization method:
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>GlassFishRealmName</realm-name>
| <form-login-config>
| <form-login-page>/ua/login-example.jsf</form-login-page>
| <form-error-page>/ua/login-example.jsf?error=true</form-error-page>
| </form-login-config>
| </login-config>
|
Now You have to configure in GlassFish JDBC Connection, Connection Pools and realms.
Realms - set jdbc realm, use connection pool configured earlier. User table: JPBM_ID_USER, user column: USER_ passwd column: PASSWORD_. For group table You need create new view in Your database : In this view You should have Name with user name, and Group with name of group connected to him. (You should have in this view only secure-roles).
Then set username, password for database.
I think that's all...
/If everything works - You will have problems with jbpm-console forms - I still don't know how to fix it - commenting bad lines is simpliest way to do it...
Regards
Jakub Naruszewicz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164399#4164399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164399
17 years, 8 months
[JBoss jBPM] - Re: the best way for this kind of assignment?
by clandestino_bgd
Hi, here is the answer (to my own question):
1. In task-node (on node-enter event) I create N task instances for particular task (inside ActionHandler). A task belongs to the swimlane, which has assignment handler that sets pooled actors.
2. User lists all pooled tasks, takes first found and sets his username as actorId for that task instance.
3. On task-assign event, I am calling ActionHandler, which invokes Web Service asynchronously.
4. When WS makes a callback, I have method which starts task instance and makes it available for external user.
The task node snippet:
| <task-node name="annotate" create-tasks="false">
| <event type="node-enter">
| <action name="createAnnotationTasksActionHandler"
| class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy"
| config-type="bean">
| <targetBean>createAnnotationTasksActionHandler</targetBean>
| </action>
| </event>
| <event type="task-assign">
| <action name="gasActionHandler"
| class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy"
| config-type="bean">
| </action>
| </event>
|
| <task description="Annotate Document" swimlane="annotator"></task>
| <transition to="join1"></transition>
| </task-node>
|
best,
Milan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164348#4164348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164348
17 years, 8 months