public void setValues(IOParameter otherElement) { super.setValues(otherElement); setSource(otherElement.getSource()); setSourceExpression(otherElement.getSourceExpression()); setTarget(otherElement.getTarget()); setTargetExpression(otherElement.getTargetExpression()); } }
public void setValues(IOParameter otherElement) { super.setValues(otherElement); setSource(otherElement.getSource()); setSourceExpression(otherElement.getSourceExpression()); setTarget(otherElement.getTarget()); setTargetExpression(otherElement.getTargetExpression()); } }
@Override public List<IOParameter> getOutputParametersOfCaseTask(String executionId) { ExecutionEntity execution = (ExecutionEntity) processEngineConfiguration.getRuntimeService().createExecutionQuery().executionId(executionId).singleResult(); if (execution == null) { throw new FlowableException("No execution could be found for id " + executionId); } FlowElement flowElement = execution.getCurrentFlowElement(); if (!(flowElement instanceof CaseServiceTask)) { throw new FlowableException("No execution could be found with a case service task for id " + executionId); } List<IOParameter> cmmnParameters = new ArrayList<>(); CaseServiceTask caseServiceTask = (CaseServiceTask) flowElement; List<org.flowable.bpmn.model.IOParameter> parameters = caseServiceTask.getOutParameters(); for (org.flowable.bpmn.model.IOParameter ioParameter : parameters) { IOParameter parameter = new IOParameter(); parameter.setSource(ioParameter.getSource()); parameter.setSourceExpression(ioParameter.getSourceExpression()); parameter.setTarget(ioParameter.getTarget()); parameter.setTargetExpression(ioParameter.getTargetExpression()); cmmnParameters.add(parameter); } return cmmnParameters; }