[JBoss jBPM] - ActorID and swimlane for a Task instance
by azeemullah_m
Hi ,
In my application i need to insert both Actor id as well as swimlane for a taskinstance whenever it is created.Because the logged in user views his tasks in myworkitem page and in group workitem he will be viewing the group workitem tasks. So for Myworkitem i will retrive based on ActorId and for group workitem i will retrive based on swimlane instance.
My JPDL :Contains
----------------------
For swimlane i have given swimlane Tag as
--------------------------------------------------
<assignment pooled-actors="AD,GSM,RVP,DVP,CDM"/>
For the actorId setting i have used .. Event tag with task-create attribute. where i am doing the following code
My Sample Task Node in my JPDL
---------------------------------------
<task-node name="RateCard AD Approval">
</task-node>
public class MyHandlerClass implements ActionHandler
{
private static final long serialVersionUID = 1L;
public void execute(ExecutionContext poExecutionContext) throws Exception {
System.out.println("Assigning the Task to the User");
JbpmContext jbpmContext = poExecutionContext.getJbpmContext();
long taskId = poExecutionContext.getTaskInstance().getId();
System.out.println("Task Instance ID IS ::::::::: "+taskId);
TaskInstance taskInstance = jbpmContext.getTaskInstance(taskId);
taskInstance.setActorId("AD");
jbpmContext.save(taskInstance);
System.out.println("Task Instance ACTOR ID::::::::: "+poExecutionContext.getTaskInstance().getActorId());
System.out.println("Assigning Done");
}
}
The Problem is when i remove the swimlane from Process Defintion it sets the Actor id in taskInstance table. but when i try with swimlane it either sets the actor iD but removes the swimlaneInstance .
WHY do we not have provision to set both while task instantiated...
Kindly reply as soon as possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190082#4190082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190082
17 years, 4 months
[JBoss jBPM] - Security in jBPM
by vinodkv
Hi ,
I am using SOA- Suite 4.2 which comes with jBPM 3.2.2.
I want to access the admin console available in jBPM via JSF. i.e I want to use JSF as the front end. jBPM uses a file based security and the user information and their roles are stored in 2 different property files.
"soa-users.properties" and soa-roles.properties".
The login-config.xml file in the conf folder within the Server profile stores the information that it calls UsersRolesLoginModule class but that class is not to be found.
Is there any way that you can directly call the jBPM API from the JSF Bean to authenticate a User and give him access to the jBPM Web Console.
Thank You in anticipation
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190008#4190008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190008
17 years, 4 months