jBPM4.3 一個請假例子 web

來源:互聯網
上載者:User

這個例子不能說是完全原創,是在一個例子的基礎上修改的,不過拿出來分享大家請輕砸。

jbpm的例子不是很多,而且前篇一律。進階的東西還得看開發手冊跟源碼。

不多說,:

對應的source

1  <?xml version="1.0" encoding="UTF-8"?>

3  <process name="loan" xmlns="http://jbpm.org/4.3/jpdl">
4     <start g="147,21,48,48" name="start">
5        <transition g="8,-9" name="提出申請" to="請假申請"/>
6     </start>
7     <end g="39,442,48,48" name="end"/>
8     <task assignee="#{user}" form="request.jsp" g="124,122,92,52" name="請假申請">
9        <transition g="11,-10" name="to_teacher" to="班主任審批"/>
10    </task>
11    <task assignee="teacher" form="request_teacher.jsp" g="125,218,92,52" name="班主任審批">
12       <transition g="4,-10" name="批准" to="exclusive1"/>
13       <transition name="駁回" to="cancel" g="436,263:-59,-17"/>
14    </task>
15    <task assignee="director" form="request_director.jsp" g="313,326,92,52" name="年級主任審批">
16       <transition g="238,467:-24,-24" name="批准" to="end"/>
17       <transition name="駁回" to="cancel" g="3,-12"/>
18    </task>
19    <decision expr="#{days >= 3 ? 'to_director' : '批准'}" g="149,317,48,48" name="exclusive1">
20       <transition g="-34,-20" name="to_director" to="年級主任審批"/>
21       <transition g="-40,-16" name="批准" to="end"/>
22    </decision>
23    <end-cancel g="384,441,48,48" name="cancel"/>
24 </process>

MyEclipse工程

工程下載

如果運行時出現問題 輕參照:http://blog.csdn.net/ol_beta/archive/2010/05/03/5553473.aspx

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.