Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.2.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.services.task.internals.lifecycle
Class MVELLifeCycleManager

    java.lang.Object
      org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager

All Implemented Interfaces:
  LifeCycleManager

    public class MVELLifeCycleManager

extends Object
implements LifeCycleManager

Constructor Summary
`MVELLifeCycleManager()`
`MVELLifeCycleManager(org.kie.internal.task.api.TaskPersistenceContext persistenceContext, org.kie.internal.task.api.TaskContentService contentService, TaskEventSupport taskEventSupport)`

Method Summary
`static Status` | `assignOwnerAndStatus(org.kie.internal.task.api.model.InternalTaskData taskData, List<OrganizationalEntity> potentialOwners)` This method will potentially assign the actual owner of this TaskData and set the status of the data.
`static Object` | `eval(Reader reader)`
`static Object` | `eval(Reader reader, Map<String,Object> vars)`
`static Object` | `eval(String str, Map<String,Object> vars)`
`static Map<org.kie.internal.task.api.model.Operation,List<OperationCommand>>` | `initMVELOperations()`
`void` | `setPersistenceContext(org.kie.internal.task.api.TaskPersistenceContext persistenceContext)`
`void` | `setTaskContentService(org.kie.internal.task.api.TaskContentService taskContentService)`
`void` | `setTaskEventSupport(TaskEventSupport taskEventSupport)`
`void` | `taskOperation(org.kie.internal.task.api.model.Operation operation, long taskId, String userId, String targetEntityId, Map<String,Object> data, List<String> groupIds, OrganizationalEntity... entities)`
`static String` | `toString(Reader reader)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MVELLifeCycleManager

    public MVELLifeCycleManager()

### MVELLifeCycleManager

    public MVELLifeCycleManager(org.kie.internal.task.api.TaskPersistenceContext persistenceContext,
                                org.kie.internal.task.api.TaskContentService contentService,
                                TaskEventSupport taskEventSupport)

Method Detail

### setPersistenceContext

    public void setPersistenceContext(org.kie.internal.task.api.TaskPersistenceContext persistenceContext)

### setTaskEventSupport

    public void setTaskEventSupport(TaskEventSupport taskEventSupport)

### setTaskContentService

    public void setTaskContentService(org.kie.internal.task.api.TaskContentService taskContentService)

### taskOperation

    public void taskOperation(org.kie.internal.task.api.model.Operation operation,
                              long taskId,
                              String userId,
                              String targetEntityId,
                              Map<String,Object> data,
                              List<String> groupIds,
                              OrganizationalEntity... entities)
                       throws org.kie.internal.task.exception.TaskException

  Specified by:
    `taskOperation` in interface `LifeCycleManager`
  Throws:
    `org.kie.internal.task.exception.TaskException`

### initMVELOperations

    public static Map<org.kie.internal.task.api.model.Operation,List<OperationCommand>> initMVELOperations()

### toString

    public static String toString(Reader reader)
                           throws IOException

  Throws:
    `IOException`

### eval

    public static Object eval(Reader reader)

### eval

    public static Object eval(Reader reader,
                              Map<String,Object> vars)

### eval

    public static Object eval(String str,
                              Map<String,Object> vars)

### assignOwnerAndStatus

    public static Status assignOwnerAndStatus(org.kie.internal.task.api.model.InternalTaskData taskData,
                                              List<OrganizationalEntity> potentialOwners)

  This method will potentially assign the actual owner of this TaskData and set the status of the data.
  - If there is only 1 potential owner, and it is a `User`, that will become the actual owner of the TaskData and the status will be set to `Status.Reserved`.
  - f there is only 1 potential owner, and it is a `Group`, no owner will be assigned and the status will be set to `Status.Ready`.
  - If there are more than 1 potential owners, the status will be set to `Status.Ready`.
  - otherwise, the task data will be unchanged

  Parameters:
    `taskdata` - - task data
    `potentialOwners` - - list of potential owners
  Returns:
    current status of task data

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.2.0.Beta1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.