com.evolveum.midpoint.wf
Class WfTaskUtil

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

@Component
public class WfTaskUtil
extends java.lang.Object

Author:
mederly

Field Summary
static javax.xml.namespace.QName WFLAST_DETAILS_PROPERTY_NAME
           
static javax.xml.namespace.QName WFLASTVARIABLES_PROPERTY_NAME
           
static javax.xml.namespace.QName WFPROCESS_WRAPPER_PROPERTY_NAME
           
static javax.xml.namespace.QName WFPROCESSID_PROPERTY_NAME
           
static javax.xml.namespace.QName WFSTATUS_PROPERTY_NAME
           
static java.lang.String WORKFLOW_EXTENSION_NS
           
 
Constructor Summary
WfTaskUtil()
           
 
Method Summary
 java.lang.String getProcessId(Task task)
           
 ProcessWrapper getProcessWrapper(Task task, java.util.List<ProcessWrapper> wrappers)
           
 java.lang.String getWfVariable(WfProcessInstanceEventType event, java.lang.String name)
           
 void markAcceptation(Task task, OperationResult result)
           
 void markRejection(Task task, OperationResult result)
           
 void prepareDefinitions()
           
 void setProcessWrapper(Task task, ProcessWrapper wrapper)
           
 java.util.Map<java.lang.String,java.lang.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 java.lang.String WORKFLOW_EXTENSION_NS
See Also:
Constant Field Values

WFSTATUS_PROPERTY_NAME

public static final javax.xml.namespace.QName WFSTATUS_PROPERTY_NAME

WFLAST_DETAILS_PROPERTY_NAME

public static final javax.xml.namespace.QName WFLAST_DETAILS_PROPERTY_NAME

WFLASTVARIABLES_PROPERTY_NAME

public static final javax.xml.namespace.QName WFLASTVARIABLES_PROPERTY_NAME

WFPROCESS_WRAPPER_PROPERTY_NAME

public static final javax.xml.namespace.QName WFPROCESS_WRAPPER_PROPERTY_NAME

WFPROCESSID_PROPERTY_NAME

public static final javax.xml.namespace.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,
                                        java.util.List<ProcessWrapper> wrappers)

unwrapWfVariables

public java.util.Map<java.lang.String,java.lang.String> unwrapWfVariables(WfProcessInstanceEventType event)

getWfVariable

public java.lang.String getWfVariable(WfProcessInstanceEventType event,
                                      java.lang.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 java.lang.String getProcessId(Task task)


Copyright © 2012 evolveum. All Rights Reserved.