本站不再更新,歡迎光臨 java開發(fā)技術(shù)網(wǎng)
          隨筆-230  評(píng)論-230  文章-8  trackbacks-0

          限制是指的是當(dāng)前作動(dòng)的執(zhí)行人!



          <!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.8//EN" "

          <workflow>
          ?? <initial-actions>
          ????? <action id="0" name="開始">
          ????? ? <pre-functions>
          ????? ???? <functions type="class">
          ????? ???? ?<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
          ????? ???? </functions>
          ????? ? </pre-functions>
          ???????? <results>
          ???????? ?<unconditional-result old-status="Finished" status="Queued" step="1" owner="${caller}" />
          ???????? </results>
          ????? </action>
          ?????
          ?? </initial-actions>
          ?? <steps>
          ?? ??<step id="1" name="送假單">
          ?? ???? <actions>
          ?? ???? ??<action id="1" name="送出">
          ?? ???? ????? <restrict-to>
          ?? ???? ?????????? <conditions>
          ?? ???? ???????????? <condition type="class">
          ????????????????????????????? <arg name="class.name">
          ??????????????????????????????? com.opensymphony.workflow.util.AllowOwnerOnlyCondition
          ????????????????????????????? </arg>
          ?????????????????????????? </condition>
          ?? ???? ????????? </conditions>
          ?? ???? ????? </restrict-to>
          ?? ???? ???<pre-functions>
          ?? ???? ????<function type="class">
          ?? ???????<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
          ?? ??????</function>
          ?? ???? ???</pre-functions>
          ?? ???? ???<results>
          ?? ???? ????<unconditional-result old-status="Finished" status="Queued" step="2" owner="${caller}"/>
          ?? ???? ???</results>
          ?? ???? ??
          ?? ???? ??</action>
          ?? ???? </actions>
          ?? ??</step>?
          ?? ??<step id="2" name="送假單">
          ?? ???<actions>
          ?? ????<action id="2" name="批準(zhǔn)">
          ?? ?????<pre-functions>
          ?? ??????<function type="class">
          ?? ???????<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
          ?? ??????</function>
          ?? ?????</pre-functions>
          ?? ?????<results>
          ?? ??????<unconditional-result old-status="finished" status="Queued" step="3" owner="${caller}"/>
          ?? ?????</results>
          ?? ????</action>
          ?? ????<action id="3" name="駁回">
          ?? ?????<pre-functions>
          ?? ??????<function type="class">
          ?? ???????<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
          ?? ??????</function>
          ?? ?????</pre-functions>
          ?? ?????<results>
          ?? ??????<unconditional-result old-status="finished" status="Queued" step="1" owner="${caller}"/>
          ?? ?????</results>
          ?? ????</action>
          ?? ???</actions>
          ?? ??</step>
          ?? ??<step id="3" name="停止"? />
          ?? </steps>
          </workflow>
          這是請(qǐng)假單的第二個(gè)演變,添加了:
          ? <restrict-to>
          ?? ???? ?????????? <conditions>
          ?? ???? ???????????? <condition type="class">
          ????????????????????????????? <arg name="class.name">
          ??????????????????????????????? com.opensymphony.workflow.util.AllowOwnerOnlyCondition
          ????????????????????????????? </arg>
          ?????????????????????????? </condition>
          ?? ???? ????????? </conditions>
          ?? ???? ????? </restrict-to>
          這個(gè)配置。這段配置就是用來限定下一步的執(zhí)行人必須是這一步的發(fā)起人。

          osworkflow限制的用法有:
          事實(shí)上OSWorkflow 2.7版提供了以下四種限制條件。

          • OSUserGroupCondition:限制由隸屬某指定Group的人執(zhí)行。
          • StatusCondition:限制step的status為某個(gè)值時(shí)才能執(zhí)行。
          • AllowOwnerOnlyCondition:只允許Owner執(zhí)行。
          • DenyOwnerCondition:只有Owner不能執(zhí)行。
          本站不再更新,歡迎光臨 java開發(fā)技術(shù)網(wǎng)
          主站蜘蛛池模板: 承德市| 张家界市| 获嘉县| 大关县| 维西| 韶山市| 资阳市| 右玉县| 海口市| 三台县| 纳雍县| 定结县| 镇宁| 中宁县| 财经| 大关县| 大田县| 临沂市| 呼伦贝尔市| 凤冈县| 五河县| 青海省| 噶尔县| 铜陵市| 仲巴县| 日照市| 贵德县| 尤溪县| 喜德县| 鹿泉市| 永嘉县| 开阳县| 桃园县| 寿光市| 武胜县| 沙坪坝区| 新民市| 哈尔滨市| 桓台县| 淮阳县| 威海市|