com.evolveum.midpoint.wf
Class WfTaskUtil

java.lang.Object
  extended by com.evolveum.midpoint.wf.WfTaskUtil

@Component
public class WfTaskUtil
extends Object

Author:
mederly

Field Summary
static QName WFLAST_DETAILS_PROPERTY_NAME
           
static QName WFLASTVARIABLES_PROPERTY_NAME
           
static QName WFPROCESS_WRAPPER_PROPERTY_NAME
           
static QName WFPROCESSID_PROPERTY_NAME
           
static QName WFSTATUS_PROPERTY_NAME
           
static String WORKFLOW_EXTENSION_NS
           
 
Constructor Summary
WfTaskUtil()
           
 
Method Summary
 String getProcessId(Task task)
           
 ProcessWrapper getProcessWrapper(Task task, List<ProcessWrapper> wrappers)
           
 String getWfVariable(WfProcessInstanceEventType event, String name)
           
 void markAcceptation(Task task, OperationResult result)
           
 void markRejection(Task task, OperationResult result)
           
 void prepareDefinitions()
           
 void setProcessWrapper(Task task, ProcessWrapper wrapper)
           
 Map<String,String> unwrapWfVariables(WfProcessInstanceEventType event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKFLOW_EXTENSION_NS

public static final String WORKFLOW_EXTENSION_NS
See Also:
Constant Field Values

WFSTATUS_PROPERTY_NAME

public static final QName WFSTATUS_PROPERTY_NAME

WFLAST_DETAILS_PROPERTY_NAME

public static final QName WFLAST_DETAILS_PROPERTY_NAME

WFLASTVARIABLES_PROPERTY_NAME

public static final QName WFLASTVARIABLES_PROPERTY_NAME

WFPROCESS_WRAPPER_PROPERTY_NAME

public static final QName WFPROCESS_WRAPPER_PROPERTY_NAME

WFPROCESSID_PROPERTY_NAME

public static final QName WFPROCESSID_PROPERTY_NAME
Constructor Detail

WfTaskUtil

public WfTaskUtil()
Method Detail

prepareDefinitions

@PostConstruct
public void prepareDefinitions()

setProcessWrapper

public void setProcessWrapper(Task task,
                              ProcessWrapper wrapper)
                       throws SchemaException
Throws:
SchemaException

getProcessWrapper

public ProcessWrapper getProcessWrapper(Task task,
                                        List<ProcessWrapper> wrappers)

unwrapWfVariables

public Map<String,String> unwrapWfVariables(WfProcessInstanceEventType event)

getWfVariable

public String getWfVariable(WfProcessInstanceEventType event,
                            String name)

markRejection

public void markRejection(Task task,
                          OperationResult result)
                   throws ObjectNotFoundException,
                          SchemaException
Throws:
ObjectNotFoundException
SchemaException

markAcceptation

public void markAcceptation(Task task,
                            OperationResult result)
                     throws ObjectNotFoundException,
                            SchemaException
Throws:
ObjectNotFoundException
SchemaException

getProcessId

public String getProcessId(Task task)


Copyright © 2013 evolveum. All Rights Reserved.