use of com.evolveum.midpoint.wf.impl.processors.general.GeneralChangeProcessorSpecificContent in project midpoint by Evolveum.
the class BaseGcpScenarioBean method prepareJobCreationInstruction.
@Override
public WfTaskCreationInstruction prepareJobCreationInstruction(GeneralChangeProcessorScenarioType scenarioType, LensContext<?> context, WfTask rootWfTask, com.evolveum.midpoint.task.api.Task taskFromModel, OperationResult result) throws SchemaException {
GeneralChangeProcessorSpecificContent processorInstruction = new GeneralChangeProcessorSpecificContent(context);
processorInstruction.setScenarioBeanName(scenarioType.getBeanName());
WfTaskCreationInstruction instruction = WfTaskCreationInstruction.createWfOnly(rootWfTask.getChangeProcessor(), processorInstruction, null);
instruction.setProcessName(scenarioType.getProcessName());
instruction.setRequesterRef(taskFromModel.getOwner());
instruction.setTaskName("Workflow-monitoring task");
instruction.setProcessInterfaceBean(defaultProcessMidPointInterface);
return instruction;
}
Aggregations