1 Reply Latest reply on Dec 13, 2007 10:34 AM by Ronald van Kuijk

    jboss/jbpm

    Biswajit Roy Newbie


      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");

      }
      }