[jboss-user] [JBoss jBPM] - jboss/jbpm

roybiswajit do-not-reply at jboss.com
Thu Dec 13 03:27:48 EST 2007


i've tried the following code for assigning value to 'admin', but when i've checked in jboss/jbpm-console server i find some unexpected incident..such as..'ve assigned to 'admin' but user, manager can do the same work..but i want that 'admin' shuld done that particular work..but this is not yet done: as for example..if 've maked some fields such as 'id' 'name' with the help of 'admin'..after data entry to that particular fields..'ve log-out from the current page..again 've log-in with the help of 'user'..but surprisinly..'ve seen that 'user' can do the same work..so pls help me out from this problem...



package com.sample.assignment;
import org.jbpm.taskmgmt.def.AssignmentHandler;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.exe.Assignable; 
//import org.jbpm.graph.exe.ProcessInstance;



public class StartAssignmentHandler implements AssignmentHandler 
{
	private static final long serialVersionUID = 2L;
	String message;//for field type
	
		
	public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception
	{
		
		assignable.setActorId("manager");
		
	}
}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112470#4112470

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112470



More information about the jboss-user mailing list