public DeploymentQueryImpl deploymentId(String deploymentId) { ensureNotNull("Deployment id", deploymentId); this.deploymentId = deploymentId; return this; }
public DeploymentQueryImpl deploymentName(String deploymentName) { ensureNotNull("deploymentName", deploymentName); this.name = deploymentName; return this; }
public DeploymentQueryImpl deploymentNameLike(String nameLike) { ensureNotNull("deploymentNameLike", nameLike); this.nameLike = nameLike; return this; }
public DeploymentQuery deploymentAfter(Date after) { ensureNotNull("deploymentAfter", after); this.deploymentAfter = after; return this; }
public GroupQuery groupId(String id) { ensureNotNull("Provided id", id); this.id = id; return this; }
@Override public CleanableHistoricCaseInstanceReport tenantIdIn(String... tenantIds) { ensureNotNull(NotValidException.class, "", "tenantIdIn", (Object[]) tenantIds); this.tenantIdIn = tenantIds; isTenantIdSet = true; return this; }
@Override public HistoricDecisionInstanceQuery processInstanceId(String processInstanceId) { ensureNotNull(NotValidException.class, "processInstanceId", processInstanceId); this.processInstanceId = processInstanceId; return this; }
public HistoricDecisionInstanceQuery rootDecisionInstanceId(String rootDecisionInstanceId) { ensureNotNull(NotValidException.class, "rootDecisionInstanceId", rootDecisionInstanceId); this.rootDecisionInstanceId = rootDecisionInstanceId; return this; }
public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey) { ensureNotNull("Process definition key", processDefinitionKey); this.processDefinitionKey = processDefinitionKey; return this; }
public ExecutionQueryImpl processInstanceId(String processInstanceId) { ensureNotNull("Process instance id", processInstanceId); this.processInstanceId = processInstanceId; return this; }
public ProcessInstanceQuery incidentMessage(String incidentMessage) { ensureNotNull("incident message", incidentMessage); this.incidentMessage = incidentMessage; return this; }
public CleanableHistoricProcessInstanceReport processDefinitionIdIn(String... processDefinitionIds) { ensureNotNull(NotValidException.class, "", "processDefinitionIdIn", (Object[]) processDefinitionIds); this.processDefinitionIdIn = processDefinitionIds; return this; }
@Override public HistoricIdentityLinkLogQuery processDefinitionKey(String processDefinitionKey) { ensureNotNull("processDefinitionKey", processDefinitionKey); this.processDefinitionKey = processDefinitionKey; return this; }
@Override public ProcessInstanceModificationInstantiationBuilder startAfterActivity(String activityId, String ancestorActivityInstanceId) { ensureNotNull(NotValidException.class, "activityId", activityId); ensureNotNull(NotValidException.class, "ancestorActivityInstanceId", ancestorActivityInstanceId); AbstractInstantiationCmd currentInstantiation = new ActivityAfterInstantiationCmd(processInstanceId, activityId, ancestorActivityInstanceId); operations.add(currentInstantiation); return this; }
@Override public ProcessInstanceModificationInstantiationBuilder startTransition(String transitionId, String ancestorActivityInstanceId) { ensureNotNull(NotValidException.class, "transitionId", transitionId); ensureNotNull(NotValidException.class, "ancestorActivityInstanceId", ancestorActivityInstanceId); AbstractInstantiationCmd currentInstantiation = new TransitionInstantiationCmd(processInstanceId, transitionId, ancestorActivityInstanceId); operations.add(currentInstantiation); return this; }
public ExecutionQuery eventSubscription(EventType eventType, String eventName) { ensureNotNull("event type", eventType); if (!EventType.MESSAGE.equals(eventType)) { // event name is optional for message events ensureNotNull("event name", eventName); } if(eventSubscriptions == null) { eventSubscriptions = new ArrayList<EventSubscriptionQueryValue>(); } eventSubscriptions.add(new EventSubscriptionQueryValue(eventName, eventType.name())); return this; }
protected void checkQueryOk() { for (QueryOrderingProperty orderingProperty : orderingProperties) { ensureNotNull(NotValidException.class, "Invalid query: call asc() or desc() after using orderByXX()", "direction", orderingProperty.getDirection()); } }
@Override public void registerProcessEngine(ProcessEngine processEngine) { ensureNotNull("Cannot register process engine in Jmx Runtime Container", "process engine", processEngine); String processEngineName = processEngine.getName(); // build and start the service. JmxManagedProcessEngine managedProcessEngine = new JmxManagedProcessEngine(processEngine); serviceContainer.startService(ServiceTypes.PROCESS_ENGINE, processEngineName, managedProcessEngine); }
public void performOperationStep(DeploymentOperation operationContext) { URL bpmPlatformXmlSource = getBpmPlatformXmlStream(operationContext); ensureNotNull("Unable to find bpm-platform.xml. This file is necessary for deploying the camunda BPM platform", "bpmPlatformXmlSource", bpmPlatformXmlSource); // parse the bpm platform xml BpmPlatformXml bpmPlatformXml = new BpmPlatformXmlParser().createParse() .sourceUrl(bpmPlatformXmlSource) .execute() .getBpmPlatformXml(); // attach to operation context operationContext.addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml); }
@Override public void deployProcessApplication(AbstractProcessApplication processApplication) { ensureNotNull("Process application", processApplication); final String operationName = "Deployment of Process Application " + processApplication.getName(); serviceContainer.createDeploymentOperation(operationName) .addAttachment(Attachments.PROCESS_APPLICATION, processApplication) .addSteps(getDeploymentSteps()) .execute(); LOG.paDeployed(processApplication.getName()); }