命题状态更新
原能力
根据出现的证据更新待查、初步支持、反驳和保留分歧的状态。(细化版 p.14–15)
首选项目
Flowable(Apache-2.0(开源引擎))。 Flowable
匹配范围
流程状态、人工任务及事件维护更新。
源码
Flowable · public interface RuntimeService
modules/flowable-engine/src/main/java/org/flowable/engine/RuntimeService.java · 62–75 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
public interface RuntimeService {
/**
* Create a {@link ProcessInstanceBuilder}, that allows to set various options for starting a process instance, as an alternative to the various startProcessInstanceByXX methods.
*/
ProcessInstanceBuilder createProcessInstanceBuilder();
/**
* Create a {@link ProcessInstanceUpdateBuilder}, that allows to update various properties of a process instance.
*
* @param processInstanceId
* id of the process instance to update, cannot be null
*/
ProcessInstanceUpdateBuilder createProcessInstanceUpdateBuilder(String processInstanceId);
Flowable · public interface TaskService
modules/flowable-engine/src/main/java/org/flowable/engine/TaskService.java · 46–59 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
public interface TaskService {
/**
* Creates a new task that is not related to any process instance.
*
* The returned task is transient and must be saved with {@link #saveTask(Task)} 'manually'.
*/
Task newTask();
/** create a new task with a user defined task id */
Task newTask(String taskId);
/**
* Create a builder for the task
实现与验收要点
按实际证据接纳、保留分歧和已否定历史。