Search in sources :

Example 1 with GeneralChangeProcessorSpecificContent

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;
}
Also used : WfTaskCreationInstruction(com.evolveum.midpoint.wf.impl.tasks.WfTaskCreationInstruction) GeneralChangeProcessorSpecificContent(com.evolveum.midpoint.wf.impl.processors.general.GeneralChangeProcessorSpecificContent)

Aggregations

GeneralChangeProcessorSpecificContent (com.evolveum.midpoint.wf.impl.processors.general.GeneralChangeProcessorSpecificContent)1 WfTaskCreationInstruction (com.evolveum.midpoint.wf.impl.tasks.WfTaskCreationInstruction)1