Class ServiceCallTask

  • All Implemented Interfaces:
    jadex.bpmn.model.task.ITask

    public class ServiceCallTask
    extends java.lang.Object
    implements jadex.bpmn.model.task.ITask
    Call a service. Service and method name may be specified as parameters. Rebind parameter is also supported. All other in and inout parameters are interpreted as method arguments. One out or inout parameter may be specifed to receive the call result. Service name may alternatively supplied as name of lane and method name as name of activity.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PROPERTY_METHOD
      Property for method name.
      static java.lang.String PROPERTY_RANKING
      Property for ranking class name.
      static java.lang.String PROPERTY_SERVICE
      Property for service name.
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceCallTask()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> cancel​(IInternalAccess instance)
      Cancel the task.
      IFuture<java.lang.Void> execute​(jadex.bpmn.model.task.ITaskContext context, IInternalAccess process)
      Execute the task.
      static java.util.List<jadex.bpmn.task.info.ParameterMetaInfo> getExtraParameters​(java.util.Map<java.lang.String,​jadex.bpmn.model.MProperty> params, jadex.bpmn.model.IModelContainer modelcontainer, java.lang.ClassLoader cl)
      Get the extra parameters that depend on the property settings of the task.
      protected IFuture<java.lang.Void> invokeService​(IInternalAccess process, java.lang.String fmethod, java.lang.String fservice, java.lang.String fresultparam, java.util.List<java.lang.Object> args, jadex.bpmn.model.task.ITaskContext context, java.lang.Object service, java.lang.reflect.Method m)
      Invoke the service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PROPERTY_SERVICE

        public static final java.lang.String PROPERTY_SERVICE
        Property for service name.
        See Also:
        Constant Field Values
      • PROPERTY_METHOD

        public static final java.lang.String PROPERTY_METHOD
        Property for method name.
        See Also:
        Constant Field Values
      • PROPERTY_RANKING

        public static final java.lang.String PROPERTY_RANKING
        Property for ranking class name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceCallTask

        public ServiceCallTask()
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(jadex.bpmn.model.task.ITaskContext context,
                                               IInternalAccess process)
        Execute the task.
        Specified by:
        execute in interface jadex.bpmn.model.task.ITask
        Parameters:
        context - The accessible values.
        process - The process instance executing the task.
        Returns:
        To be notified, when the task has completed.
      • invokeService

        protected IFuture<java.lang.Void> invokeService​(IInternalAccess process,
                                                        java.lang.String fmethod,
                                                        java.lang.String fservice,
                                                        java.lang.String fresultparam,
                                                        java.util.List<java.lang.Object> args,
                                                        jadex.bpmn.model.task.ITaskContext context,
                                                        java.lang.Object service,
                                                        java.lang.reflect.Method m)
        Invoke the service.
      • cancel

        public IFuture<java.lang.Void> cancel​(IInternalAccess instance)
        Cancel the task.
        Specified by:
        cancel in interface jadex.bpmn.model.task.ITask
        Returns:
        To be notified, when the compensation has completed.
      • getExtraParameters

        public static java.util.List<jadex.bpmn.task.info.ParameterMetaInfo> getExtraParameters​(java.util.Map<java.lang.String,​jadex.bpmn.model.MProperty> params,
                                                                                                jadex.bpmn.model.IModelContainer modelcontainer,
                                                                                                java.lang.ClassLoader cl)
        Get the extra parameters that depend on the property settings of the task.