Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dunzung authored Dec 5, 2018
1 parent cf3906e commit 6509bfa
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ com.vprisk.workflow.core.ProcessDefinitionService
ProcessDefinitionDto processDefinitionDto = ...;
processDefinitionService.copyProcessDefinition(processDefinitionDto);


##### 4.1.4 流程参数接口

com.vprisk.workflow.core.VariableService
Expand All @@ -1028,28 +1029,25 @@ com.vprisk.workflow.core.ProcessDefinitionService

**设置流程实例或任务实例共有参数**

@Transactional

@Transactional
public Object setVariable(String tartgetId,String variableName)

**设置流程实例或任务实例私有参数**

@Transactional

@Transactional
public Object setVariableLocal(String tartgetId,String variableName)

**删除流程实例或任务实例私有参数**

@Transactional

@Transactional
public Object removeVariableLocal(String tartgetId,String variableName)

**删除流程实例或任务实例共有参数**

@Transactional

@Transactional
public Object removeVariable(String tartgetId,String variableName)


##4.2 历史查询服务接口

历史查询服务提供了工作流的所有历史数据。 在执行流程时,引擎会保存很多数据,比如流程实例启动时间,任务的参与者, 完成任务的时间,每个流程实例的执行路径等等。 这个服务主要通过查询功能来获得这些数据。
Expand Down Expand Up @@ -1082,9 +1080,10 @@ com.vprisk.workflow.core.HistoricTaskInstanceService

**4.2.1.1 查询流程参数**

Strubg processInstanceId = ...;
String processInstanceId = ...;
Map<String, Object> map = historicTaskInstanceService.getVariablesByProcessInstanceId(processInstanceId);


###4.2.2 历史流程实例服务接口

com.vprisk.workflow.core.HistoricProcessInstanceService
Expand All @@ -1096,11 +1095,13 @@ com.vprisk.workflow.core.HistoricProcessInstanceService
@Autowired
public HistoricProcessInstanceService historicProcessInstanceService;


**4.2.2.1 查询指定流程实例详细**

Strubg processInstanceId = ...;
ProcessInstanceDto dto = historicProcessInstanceService.findProcessInstanceById(processInstanceId);


**4.2.2.1 分页查询流程实例**

Pageable pageable = ...;
Expand All @@ -1111,6 +1112,7 @@ com.vprisk.workflow.core.HistoricProcessInstanceService

Page<WorkflowTableDto> page = historicProcessInstanceService.pageProcess(pageable,params);


## 4.3 扩展服务接口

###4.3.1 触发器服务接口 ###
Expand All @@ -1124,6 +1126,7 @@ com.vprisk.workflow.core.ListenerService
@Autowired
public ListenerService listenerService;


###4.3.2 流程参与人服务接口 ###

com.vprisk.workflow.core.ParticipantService
Expand All @@ -1133,6 +1136,7 @@ com.vprisk.workflow.core.ParticipantService
@Autowired
public ParticipantService participantService;


###4.3.3 历史任务扩展服务接口 ###

com.vprisk.workflow.core.TaskHistoryService
Expand All @@ -1144,6 +1148,7 @@ com.vprisk.workflow.core.TaskHistoryService
@Autowired
public TaskHistoryService taskHistoryService;


###4.3.4 流程代理服务接口 ###

com.vprisk.workflow.core.ProcessAgentService
Expand All @@ -1156,6 +1161,7 @@ com.vprisk.workflow.core.ProcessAgentService
@Autowired
public ProcessAgentService processAgentService;


###4.3.5 任务定义扩展服务接口 ###

com.vprisk.workflow.core.NodeVariableService
Expand Down

0 comments on commit 6509bfa

Please sign in to comment.