Package jadex.bpmn.runtime.task
Class PojoTaskWrapper
- java.lang.Object
-
- jadex.bpmn.runtime.task.PojoTaskWrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.MethodcancelmethodThe cancel method.protected java.lang.ObjectpojotaskThe pojo task.protected java.util.Map<java.lang.String,FieldInfo>resinjectionsThe resinjections.
-
Constructor Summary
Constructors Constructor Description PojoTaskWrapper()Bean constructor.PojoTaskWrapper(java.lang.Object pojotask, IInternalAccess ia, ProcessThread thread, java.util.List<FieldInfo> cominjections, java.util.Map<java.lang.String,java.util.List<FieldInfo>> arginjections, java.util.Map<java.lang.String,FieldInfo> resinjections)Create a new wrapper task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>cancel(IInternalAccess process)Cleanup in case the task is cancelled.IFuture<java.lang.Void>execute(ITaskContext context, IInternalAccess process)Execute the task.java.lang.reflect.MethodgetCancelMethod()Get the cancelmethod.java.lang.ObjectgetPojoTask()Get the pojotask.java.util.Map<java.lang.String,FieldInfo>getResultInjections()Get the resinjections.java.lang.Object[]guessParameters(java.lang.Class<?>[] ptypes, java.util.Set<java.lang.Object> vals)Method that tries to guess the parameters for the method call.voidsetCancelMethod(java.lang.reflect.Method cancelmethod)Set the cancelmethod.voidsetPojoTask(java.lang.Object pojotask)Set the pojotask.voidsetResultInjections(java.util.Map<java.lang.String,FieldInfo> resinjections)Set the resinjections.protected voidsetResults(boolean noret, java.lang.Object result, ITaskContext context, IInternalAccess process)Set the results.
-
-
-
Field Detail
-
pojotask
protected java.lang.Object pojotask
The pojo task.
-
cancelmethod
protected java.lang.reflect.Method cancelmethod
The cancel method.
-
resinjections
protected java.util.Map<java.lang.String,FieldInfo> resinjections
The resinjections.
-
-
Constructor Detail
-
PojoTaskWrapper
public PojoTaskWrapper()
Bean constructor.
-
PojoTaskWrapper
public PojoTaskWrapper(java.lang.Object pojotask, IInternalAccess ia, ProcessThread thread, java.util.List<FieldInfo> cominjections, java.util.Map<java.lang.String,java.util.List<FieldInfo>> arginjections, java.util.Map<java.lang.String,FieldInfo> resinjections)Create a new wrapper task.
-
-
Method Detail
-
execute
public IFuture<java.lang.Void> execute(ITaskContext context, IInternalAccess process)
Execute the task.
-
cancel
public IFuture<java.lang.Void> cancel(IInternalAccess process)
Cleanup in case the task is cancelled.
-
guessParameters
public java.lang.Object[] guessParameters(java.lang.Class<?>[] ptypes, java.util.Set<java.lang.Object> vals)Method that tries to guess the parameters for the method call.
-
setResults
protected void setResults(boolean noret, java.lang.Object result, ITaskContext context, IInternalAccess process)Set the results.
-
getPojoTask
public java.lang.Object getPojoTask()
Get the pojotask.- Returns:
- The pojotask.
-
setPojoTask
public void setPojoTask(java.lang.Object pojotask)
Set the pojotask.- Parameters:
pojotask- The pojotask to set.
-
getCancelMethod
public java.lang.reflect.Method getCancelMethod()
Get the cancelmethod.- Returns:
- The cancelmethod.
-
setCancelMethod
public void setCancelMethod(java.lang.reflect.Method cancelmethod)
Set the cancelmethod.- Parameters:
cancelmethod- The cancelmethod to set.
-
getResultInjections
public java.util.Map<java.lang.String,FieldInfo> getResultInjections()
Get the resinjections.- Returns:
- The resinjections.
-
setResultInjections
public void setResultInjections(java.util.Map<java.lang.String,FieldInfo> resinjections)
Set the resinjections.- Parameters:
resinjections- The resinjections to set.
-
-