本站不再更新,歡迎光臨 java開發技術網
          隨筆-230  評論-230  文章-8  trackbacks-0

          限制是指的是當前作動的執行人!



          <!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="批準">
          ?? ?????<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>
          這是請假單的第二個演變,添加了:
          ? <restrict-to>
          ?? ???? ?????????? <conditions>
          ?? ???? ???????????? <condition type="class">
          ????????????????????????????? <arg name="class.name">
          ??????????????????????????????? com.opensymphony.workflow.util.AllowOwnerOnlyCondition
          ????????????????????????????? </arg>
          ?????????????????????????? </condition>
          ?? ???? ????????? </conditions>
          ?? ???? ????? </restrict-to>
          這個配置。這段配置就是用來限定下一步的執行人必須是這一步的發起人。

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

          • OSUserGroupCondition:限制由隸屬某指定Group的人執行。
          • StatusCondition:限制step的status為某個值時才能執行。
          • AllowOwnerOnlyCondition:只允許Owner執行。
          • DenyOwnerCondition:只有Owner不能執行。
          本站不再更新,歡迎光臨 java開發技術網
          主站蜘蛛池模板: 克山县| 河源市| 勐海县| 潞城市| 丁青县| 济南市| 宜章县| 临江市| 来宾市| 竹溪县| 丁青县| 清水县| 巧家县| 通渭县| 安溪县| 陈巴尔虎旗| 阿鲁科尔沁旗| 隆尧县| 台东市| 栾城县| 林甸县| 彰武县| 金昌市| 县级市| 宜章县| 邢台县| 大英县| 五大连池市| 长乐市| 香格里拉县| 习水县| 桦川县| 利津县| 潮安县| 新绛县| 鹰潭市| 无棣县| 桐梓县| 象州县| 饶平县| 钟祥市|