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

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

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

    網路冷眼@BlogJava

    熙熙攘攘一閑人 以冷靜的眼光觀察技術
    posts - 88, comments - 193, trackbacks - 0, articles - 28
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    Chapter 10. History(歷史)

    Table of Contents

    History configuration(歷史配置)
    History for audit purposes(審計目的的歷史)

    History is the component that captures what happened during process execution and stores it permanently. In contrast to the runtime data, the history data will remain present in the DB also after process instances have completed.

    歷史是在流程執行過程中抓取的事件以及把事件永久存儲的部件。與運行時數據相比較,歷史數據既將當前的數據也將流程已經完成的數據保留在數據庫中。

    There are 3 history entities: HistoricProcessInstances containing information about current and past process instances, HistoricActivityInstances containing information about a single execution of an activity and HistoricDetail containing various kinds of information related to either a historic process instances or an activity instance.

    存在3種歷史實體:HistoricProcessInstance包含與當前和過去流程示例相關的信息;HistoricActivityInstance包含與一個活動的當個執行相關的信息;HistoricActivityInstance包含與歷史流程實例或者一個活動示例相關的不同的信息。

    In the API, the HistoryService exposes this information by offering methods createHistoricProcessInstanceQuery, createHistoricActivityInstanceQuery and createHistoricDetailQuery.

    在API里,歷史服務(HistoryService)通過提供createHistoricProcessInstanceQuery, createHistoricActivityInstanceQuery and createHistoricDetailQuery方法暴露這個信息。

    Since the DB contains historic entities for past as well as ongoing instances, you might want to consider querying these tables in order to minimize access to the runtime process instance data and that way keeping the runtime execution performant.

    因為DB包含過去的,正運行示例的歷史實體,所以為了最小化訪問運行流程實例的數據,你也許考慮查詢這些庫表。這種方式保留了運行期執行的效率。

    Later on, this information will be exposed in Activiti Explorer and Activiti Probe. Also, it will be the information from which the reports will be generated.

    最后,這個信息將會在 Activiti Explorer和 and Activiti Probe里面暴露。這將是報告將會產生信息的來源。

    History configuration(歷史配置)

    In the activiti.cfg.xml configuration file, you can configure the level of history archiving that needs to happen:

    在activiti.cfg.xml配置文件,你能配置需要的歷史歸檔的級別:

    <activiti-cfg>
    <history level="audit" />
    ...
    </activiti-cfg>
    

    Or if you're using the spring style of configuration:

    或者如果你正使用Spring風格的配置方式:

    <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
    <property name="historyLevel" value="audit" />
    ...
    </bean>

    Following history levels can be configured:

    可以配置如下的歷史級別:

    • none: skips all history archiving. This is the most performant for runtime process execution, but no historical information will be available.

      忽略所有的歷史歸檔。盡管對于運行期流程執行來說這是性能最高的,但是沒有歷史信息保留。

    • activity: archives all process instances and activity instances. No details will be archived

      歸檔所有流程實例和活動實例。不歸檔細節。

    • audit: This is the default. It archives all process instances, activity instances and all form properties that are submitted so that all user interaction through forms is traceable and can be audited.

      這是缺省級別。它歸檔所有流程實例,活動實例和提交的表單屬性。以至于通過表單的所有用戶交互都是可跟蹤并可以被審計。

    • full: This is the highest level of history archiving and hence the slowest. This level stores all information as in the audit level plus all other possible details like process variable updates.

      這是歷史歸檔的最高級別。所以是最慢的。這個水平保存audit級別的所有信息加上像流程變量的所有其它可能的細節。

    History for audit purposes(審計目的的歷史)

    When configuring at least audit level for configuration. Then all properties submitted through methods FormService.submitStartFormData(String processDefinitionId, Map<String, String> properties) and FormService.submitTaskFormData(String taskId, Map<String, String> properties) are recorded.

    當配置configuring 至少為audit級別時,那么通過FormService.submitStartFormData(String processDefinitionId, Map<String, String> properties)FormService.submitTaskFormData(String taskId, Map<String, String> properties) 方法提交的所有屬性將會被記錄。

    [KNOWN LIMITATION] Currently the forms as worked out in Activiti Explorer do not yet use the submitStartFormData and submitTaskFormData. So the form properties are not yet archived when using the forms in Activity Explorer. @see ACT-294

    [KNOWN LIMITATION] 當前在工作的表單 還沒有使用 submitStartFormDatasubmitTaskFormData。所以當在使用表單時,表單屬性還未被歸檔。@參見 ACT-294

    Form properties can be retrieved with the query API like this:

    表單特性能夠像下面以查詢API方式檢索:

    historyService
    .createHistoricDetailQuery()
    .onlyFormProperties()
    ...
    .list();

    In that case only historic details of type HistoricFormProperty are returned.

    在那種情況下,只返回 HistoricFormProperty類型的歷史細節。

    If you've set the authenticated user before calling the submit methods with IdentityService.setAuthenticatedUserId(String) then that authenticated user who submitted the form will be accessible in the history as well with HistoricProcessInstance.getStartFormUserId() for start forms and HistoricActivityInstance.getAssignee() for task forms.

    如果在調用帶有IdentityService.setAuthenticatedUserId(String) 提交方法之前,你已經設置認證用戶,那么提交這個表單的那個認證用戶將會在歷史里可訪問。帶有HistoricProcessInstance.getStartFormUserId() 訪問啟動表單,帶有HistoricActivityInstance.getAssignee() 訪問任務表單。

    主站蜘蛛池模板: 免费在线观看亚洲| 亚洲中文字幕久久无码| 九一在线完整视频免费观看 | 日本亚洲欧美色视频在线播放| 亚洲一级免费视频| 91亚洲va在线天线va天堂va国产| 久久免费视频精品| 91亚洲国产在人线播放午夜| 无码囯产精品一区二区免费| 亚洲欧洲日产国码www| 久九九精品免费视频| 亚洲熟女www一区二区三区| 国产精品自在自线免费观看| 在线观看亚洲专区| 相泽亚洲一区中文字幕| 成人影片一区免费观看| 亚洲高清日韩精品第一区| 99re热免费精品视频观看| 色噜噜的亚洲男人的天堂| 国产性爱在线观看亚洲黄色一级片 | 亚洲午夜电影在线观看| 成年性午夜免费视频网站不卡| 亚洲а∨精品天堂在线| 精品国产人成亚洲区| 无码国产精品一区二区免费3p| 亚洲综合偷自成人网第页色| 免费观看午夜在线欧差毛片 | 亚洲日本久久一区二区va| 日韩一品在线播放视频一品免费| 国产尤物在线视精品在亚洲| 亚洲国产精品成人久久| 在线观看H网址免费入口| 精品久久久久久亚洲中文字幕| 中文字幕亚洲一区二区三区| 久久免费视频精品| 国产亚洲高清在线精品不卡| 亚洲一区二区三区四区在线观看| 国产免费久久精品| 51视频精品全部免费最新| 日本在线观看免费高清| 亚洲综合综合在线|