Package jadex.bpmn.runtime
Class ProcessServiceInvocationHandler
- java.lang.Object
-
- jadex.bpmn.runtime.ProcessServiceInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class ProcessServiceInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
Invocation handler for mapping service requests to start events of BPMN processes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_PARAMETER_SERVICE_RESULT
The user result parameter name.protected java.util.Map<java.lang.String,MActivity>
events
The method / event mapping.protected IInternalAccess
instance
The process instance.static java.lang.String
THREAD_PARAMETER_SERVICE_RESULT
The future result parameter name.
-
Constructor Summary
Constructors Constructor Description ProcessServiceInvocationHandler(IInternalAccess instance, java.lang.String actid)
Create a new process service invocation handler.ProcessServiceInvocationHandler(IInternalAccess instance, java.util.Map<java.lang.String,MActivity> events)
Create a new process service invocation handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
Called when a method is invoked on a proxy.
-
-
-
Field Detail
-
THREAD_PARAMETER_SERVICE_RESULT
public static final java.lang.String THREAD_PARAMETER_SERVICE_RESULT
The future result parameter name.- See Also:
- Constant Field Values
-
EVENT_PARAMETER_SERVICE_RESULT
public static final java.lang.String EVENT_PARAMETER_SERVICE_RESULT
The user result parameter name.- See Also:
- Constant Field Values
-
instance
protected IInternalAccess instance
The process instance.
-
events
protected java.util.Map<java.lang.String,MActivity> events
The method / event mapping.
-
-
Constructor Detail
-
ProcessServiceInvocationHandler
public ProcessServiceInvocationHandler(IInternalAccess instance, java.util.Map<java.lang.String,MActivity> events)
Create a new process service invocation handler.
-
ProcessServiceInvocationHandler
public ProcessServiceInvocationHandler(IInternalAccess instance, java.lang.String actid)
Create a new process service invocation handler.
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
Called when a method is invoked on a proxy.- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-