<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Oracle神諭

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks

    Assignment(分派)
    A process definition contains can have task nodes. A task-node contains zero or more tasks. Tasks are a static description as part of the process definition. At runtime, tasks result(起源于) in the creation of task instances. A task instance corresponds to(相應) one entry in a person's task list.
    tasknodes-->>task-node--->>tasks 

    With jBPM, push and pull model (see below) of task assignment can be applied in combination. The process can calculate(考慮) the responsible for a task and push it in his/her tasklist. Or alternatively(作為選擇), a task can be assigned to a pool of actors, in which case each of the actors in the pool can pull the task and put it in the actor's personal tasklist.  {這里提到了一個行為池的概念 pool of actors}

    9.3.1. Assignment interfaces
    Assigning task instances is done via the interface AssignmentHandler: {任務實例分派是依靠AssignmentHandler來實現的}

    public interface AssignmentHandler extends Serializable {
      void assign( Assignable assignable, ExecutionContext executionContext );
    }
    An assignment handler implementation is called when a task instance is created. At that time, the task instance can be assigned to one or more actors. The AssignmentHandler implementation should call the Assignable methods (setActorId or setPooledActors) to assign a task. The Assignable is either a TaskInstance or a SwimlaneInstance (=process role).

    Assignable 流程角色:TaskInstance  SwimlaneInstance

    public interface Assignable {
      public void setActorId(String actorId);
      public void setPooledActors(String[] pooledActors);
    }

    Both TaskInstances and SwimlaneInstances can be assigned to a specific user or to a pool of actors. To assign a TaskInstance to a user, call Assignable.setActorId(String actorId). To assign a TaskInstance to a pool of candidate(侯選) actors, call Assignable.setPooledActors(String[] actorIds).

    分配對象:
    分配給一個用戶       Assignable.setActorId(String actorId);
    分配給一個侯選用戶池 Assignable.setPooledActors(String[] actorIds);

    Each task in the process definition can be associated with an assignment handler implementation to perform the assignment at runtime.


    When more then one task in a process should be assigned to the same person or group of actors, consider the usage of a swimlane

    在一個流程當多于一個任務時應當被分派給一個用戶或多用戶的組,考慮使用泳道。

    To allow for the creation of reusable AssignmentHandlers, each usage of an AssignmentHandler can be configured in the processdefinition.xml. See Section 13.2, “Delegation(委托)” for more information on how to add configuration to assignment handlers.

    9.3.2. The assignment data model
    The datamodel for managing assignments of task instances and swimlane instances to actors is the following. Each TaskInstance has an actorId and a set of pooled actors.

    The actorId is the responsible for the task, while the set of pooled actors represents a collection of candidates that can become responsible if they would take the task. Both actorId and pooledActors are optional and can also be combined.


    Pull model(拉模式)
    On the other hand, the tasks of pooled tasks for a given user are the tasks for which the given user is referenced in the pooled actors.
    Fetching the list of pooled tasks is typically a two step operation :
    1) get all the groups for the given user from the identity component. and
    2) get the list of all pooled tasks for the combined set of the user's actorId and the actorId's that reference the users' groups.
     Getting the list of pooled tasks that are offered to a given user can be done with the methods TaskMgmtSession.findPooledTaskInstances(String actorId) or TaskMgmtSession.findPooledTaskInstances(List actorIds). These methods will only return task instances for which the actorId is null and one of the given actorIds matches one of the pooled actors.

    TaskMgmtSession.findPooledTaskInstance(String actorId)
    TaskMgmtSession.findPooledTaskInstance(List actorIds)

    To prevent multiple users working on the same pooled task, it is sufficient to update the actorId of the TaskInstance with the user's actorId. After that, the task instance will not appear in the list of pooled tasks, but only in the user's personal task list. Setting the actorId of a taskInstance to null will put the task instance back in the pooled tasks.

    posted on 2005-06-15 11:18 java世界暢談 閱讀(1558) 評論(0)  編輯  收藏 所屬分類: 工作流
    主站蜘蛛池模板: 亚洲宅男天堂在线观看无病毒| 97人妻无码一区二区精品免费| 亚洲不卡无码av中文字幕| 亚洲va在线va天堂成人| 日韩一区二区a片免费观看| 亚洲的天堂av无码| 18女人腿打开无遮掩免费| 亚洲视频在线观看视频| 在线视频免费观看爽爽爽| 久久精品国产亚洲av麻豆蜜芽 | 亚洲AV午夜福利精品一区二区| 日韩a级无码免费视频| 久久久亚洲精品无码| 51视频精品全部免费最新| 麻豆狠色伊人亚洲综合网站| 成人免费视频小说| 另类小说亚洲色图| 亚洲色欲色欲www在线丝| 99在线观看免费视频| 亚洲欧洲另类春色校园网站| 国产老女人精品免费视频| 亚洲阿v天堂在线2017免费| 久久亚洲国产精品| 免费无遮挡无码视频网站| 羞羞的视频在线免费观看| 亚洲精品亚洲人成人网| 最近中文字幕国语免费完整 | 亚洲色图综合在线| 无码国产精品一区二区免费3p | 99久久免费精品高清特色大片| 亚洲一级黄色大片| 亚洲A丁香五香天堂网| 久久久99精品免费观看| 亚洲欧美日韩国产成人| 亚洲综合伊人久久综合| 免费观看AV片在线播放| 羞羞视频在线观看免费| 亚洲熟妇无码爱v在线观看| 内射无码专区久久亚洲 | 女人18毛片水真多免费看| jizz中国免费|