alartin's profileWindows Live 共享空间PhotosBlogListsMore Tools Help

Blog


    January 22

    JBPM术语:事件Event

    概述

    Event反映的是流程执行中的各个时刻。在流程执行中JBPM引擎会在计算下一个状态的时候触发各种事件。一个事件通常和流程定义中的一个元素相关联,比如流程定义本身,节点或者转移。大部分的元素能够触发不同类型的事件,比如一个节点可以触发节点进入事件,节点离开事件。事件其实是和动作连接在一起的。每个事件维护一个动作列表。当JBPM引擎触发一个事件的时候,该事件维护的动作列表中的动作将被执行。

    事件类型

    在JBPM中事件类型是写死在事件类中的,共有16种:

    1. EVENTTYPE_TRANSITION = "transition"; // 转移
    2. EVENTTYPE_BEFORE_SIGNAL = "before-signal"; // 发信号前
    3. EVENTTYPE_AFTER_SIGNAL = "after-signal"; // 发信号后
    4. EVENTTYPE_PROCESS_START = "process-start"; // 处理开始状态
    5. EVENTTYPE_PROCESS_END = "process-end"; // 处理结束状态
    6. EVENTTYPE_NODE_ENTER = "node-enter"; // 进入节点
    7. EVENTTYPE_NODE_LEAVE = "node-leave"; // 离开节点
    8. EVENTTYPE_SUPERSTATE_ENTER = "superstate-enter"; // 进入超级状态
    9. EVENTTYPE_SUPERSTATE_LEAVE = "superstate-leave"; // 离开超级状态
    10. EVENTTYPE_SUBPROCESS_CREATED = "subprocess-created"; // 子流程创建
    11. EVENTTYPE_SUBPROCESS_END = "subprocess-end"; // 子流程结束
    12. EVENTTYPE_TASK_CREATE = "task-create"; // 任务创建
    13. EVENTTYPE_TASK_ASSIGN = "task-assign"; // 任务分派
    14. EVENTTYPE_TASK_START = "task-start"; // 任务启动
    15. EVENTTYPE_TASK_END = "task-end"; // 任务结束
    16. EVENTTYPE_TIMER = "timer"; // 定时器

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://alarnan.spaces.live.com/blog/cns!819CBC613DE169EF!180.trak
    Weblogs that reference this entry
    • None