Package org.drools.task

Examples of org.drools.task.User


      if (userInfo == null) {
        return;
      }
     
        TaskData data = task.getTaskData();
        User owner = data.getActualOwner();
        User creator = data.getCreatedBy();
        Date createdOn = data.getCreatedOn();

        if ( task.getDeadlines() == null ) {
            return;
        }
View Full Code Here


       
        priority = in.readInt();
        skipable = in.readBoolean();

        if ( in.readBoolean() ) {
            actualOwner = new User();
            actualOwner.readExternal( in );
        }
       
        if ( in.readBoolean() ) {
            createdBy = new User();
            createdBy.readExternal( in );
        }
       
        if ( in.readBoolean() ) {
            createdOn = new Date( in.readLong() );
View Full Code Here

        int size = in.readInt();
        List<OrganizationalEntity> list = new ArrayList<OrganizationalEntity>(size);
        for ( int i = 0; i < size; i++ ) {
            short type = in.readShort();
            if ( type == 0 ) {
                User user = new User();
                user.readExternal( in );
                list.add( user );
            } else {
                Group group = new Group();
                group.readExternal( in );
                list.add( group );
View Full Code Here

        String actorId = (String) workItem.getParameter("ActorId");
    if (actorId != null) {
     
      String[] actorIds = actorId.split(",");
      for (String id: actorIds) {
        User user = new User();
        user.setId(id.trim());
        potentialOwners.add(user);
      }
            //Set the first user as creator ID??? hmmm might be wrong
            if (potentialOwners.size() > 0){
                taskData.setCreatedBy((User)potentialOwners.get(0));
            }
        }
        String groupId = (String) workItem.getParameter("GroupId");
    if (groupId != null) {
     
      String[] groupIds = groupId.split(",");
      for (String id: groupIds) {

        potentialOwners.add(new Group(id));
      }
     
    }

        assignments.setPotentialOwners(potentialOwners);
    List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
    businessAdministrators.add(new User("Administrator"));
    assignments.setBusinessAdministrators(businessAdministrators);
    task.setPeopleAssignments(assignments);
       
    task.setTaskData(taskData);
View Full Code Here

        String actorId = (String) workItem.getParameter("ActorId");
    if (actorId != null) {
     
      String[] actorIds = actorId.split(",");
      for (String id: actorIds) {
        User user = new User();
        user.setId(id.trim());
        potentialOwners.add(user);
      }
            //Set the first user as creator ID??? hmmm might be wrong
            if (potentialOwners.size() > 0){
                taskData.setCreatedBy((User)potentialOwners.get(0));
            }
        }
        String groupId = (String) workItem.getParameter("GroupId");
    if (groupId != null) {
     
      String[] groupIds = groupId.split(",");
      for (String id: groupIds) {

        potentialOwners.add(new Group(id));
      }
     
    }

        assignments.setPotentialOwners(potentialOwners);
    List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
    businessAdministrators.add(new User("Administrator"));
    assignments.setBusinessAdministrators(businessAdministrators);
    task.setPeopleAssignments(assignments);
       
    task.setTaskData(taskData);
View Full Code Here

        String actorId = (String) workItem.getParameter("ActorId");
    if (actorId != null) {
     
      String[] actorIds = actorId.split(",");
      for (String id: actorIds) {
        User user = new User();
        user.setId(id.trim());
        potentialOwners.add(user);
      }
            //Set the first user as creator ID??? hmmm might be wrong
            if (potentialOwners.size() > 0){
                taskData.setCreatedBy((User)potentialOwners.get(0));
            }
        }
        String groupId = (String) workItem.getParameter("GroupId");
    if (groupId != null) {
     
      String[] groupIds = groupId.split(",");
      for (String id: groupIds) {

        potentialOwners.add(new Group(id));
      }
     
    }

        assignments.setPotentialOwners(potentialOwners);
    List<OrganizationalEntity> businessAdministrators = new ArrayList<OrganizationalEntity>();
    businessAdministrators.add(new User("Administrator"));
    assignments.setBusinessAdministrators(businessAdministrators);
    task.setPeopleAssignments(assignments);
       
    task.setTaskData(taskData);
View Full Code Here

                                   String targetEntityId,
                                   ContentData data) {
        Task task = em.find( Task.class,
                             taskId );

        User user = em.find( User.class,
                             userId );

        OrganizationalEntity targetEntity = null;
        if ( targetEntityId != null ) {
            targetEntity = em.find( OrganizationalEntity.class,
View Full Code Here

      if (userInfo == null) {
        return;
      }
     
        TaskData data = task.getTaskData();
        User owner = data.getActualOwner();
        User creator = data.getCreatedBy();
        Date createdOn = data.getCreatedOn();

        if ( task.getDeadlines() == null ) {
            return;
        }
View Full Code Here

        int size = in.readInt();
        List<OrganizationalEntity> list = new ArrayList<OrganizationalEntity>(size);
        for ( int i = 0; i < size; i++ ) {
            short type = in.readShort();
            if ( type == 0 ) {
                User user = new User();
                user.readExternal( in );
                list.add( user );
            } else {
                Group group = new Group();
                group.readExternal( in );
                list.add( group );
View Full Code Here

       
        priority = in.readInt();
        skipable = in.readBoolean();

        if ( in.readBoolean() ) {
            actualOwner = new User();
            actualOwner.readExternal( in );
        }
       
        if ( in.readBoolean() ) {
            createdBy = new User();
            createdBy.readExternal( in );
        }
       
        if ( in.readBoolean() ) {
            createdOn = new Date( in.readLong() );
View Full Code Here

TOP

Related Classes of org.drools.task.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.