Java Code Examples for org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity#getIdentityLinks()

The following examples show how to use org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity#getIdentityLinks() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GetIdentityLinksForProcessDefinitionCmd.java    From activiti6-boot2 with Apache License 2.0 5 votes vote down vote up
@SuppressWarnings({ "unchecked", "rawtypes" })
public List<IdentityLink> execute(CommandContext commandContext) {
  ProcessDefinitionEntity processDefinition = commandContext.getProcessDefinitionEntityManager().findById(processDefinitionId);

  if (processDefinition == null) {
    throw new ActivitiObjectNotFoundException("Cannot find process definition with id " + processDefinitionId, ProcessDefinition.class);
  }

  List<IdentityLink> identityLinks = (List) processDefinition.getIdentityLinks();
  return identityLinks;
}
 
Example 2
Source File: GetIdentityLinksForProcessDefinitionCmd.java    From flowable-engine with Apache License 2.0 5 votes vote down vote up
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public List<IdentityLink> execute(CommandContext commandContext) {
    ProcessDefinitionEntity processDefinition = commandContext
            .getProcessDefinitionEntityManager()
            .findProcessDefinitionById(processDefinitionId);

    if (processDefinition == null) {
        throw new ActivitiObjectNotFoundException("Cannot find process definition with id " + processDefinitionId, ProcessDefinition.class);
    }

    List<IdentityLink> identityLinks = (List) processDefinition.getIdentityLinks();
    return identityLinks;
}