Petals SE Activiti

Support timeout on service task

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.5.0
  • Fix Version/s: 1.0.0
  • Component/s: Process service
  • Security Level: Public
  • Description:

    When invoking a service provider through a service task, we are not able to define the time-out to use.

    Please add a way to set this time-out.

  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Tue, 15 Sep 2015 - 11:41:13 +0200 - edited

In a business process point of view, such a time-out could be a boundary timer event. But such an event is mainly used for long running service.

The time-out on service provider invocation aims to be not blocked on non-responsive service-provider. It's a technical time-out.

Such a time-out can be defined in the JBI descriptor of the Activiti service unit, under the section 'consume' of the invoked service provider:

<jbi:jbi ...>
   <jbi:services binding-component="false">
	<jbi:provides
		interface-name="process:vacation"
		service-name="process:vacationService"
		endpoint-name="autogenerate">
			
         <petals-se-activitibpmn:process_file1>vacationRequest.bpmn20.xml</petals-se-activitibpmn:process_file1>
         <petals-se-activitibpmn:version1>1</petals-se-activitibpmn:version1>
      </jbi:provides>
      
      <jbi:consumes
           interface-name="archiveService:archive"
           service-name="archiveService:archiveService">
         <petalsCDK:timeout>15000</petalsCDK:timeout>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
Show
Christophe DENEUX added a comment - Tue, 15 Sep 2015 - 11:41:13 +0200 - edited In a business process point of view, such a time-out could be a boundary timer event. But such an event is mainly used for long running service. The time-out on service provider invocation aims to be not blocked on non-responsive service-provider. It's a technical time-out. Such a time-out can be defined in the JBI descriptor of the Activiti service unit, under the section 'consume' of the invoked service provider:
<jbi:jbi ...>
   <jbi:services binding-component="false">
	<jbi:provides
		interface-name="process:vacation"
		service-name="process:vacationService"
		endpoint-name="autogenerate">
			
         <petals-se-activitibpmn:process_file1>vacationRequest.bpmn20.xml</petals-se-activitibpmn:process_file1>
         <petals-se-activitibpmn:version1>1</petals-se-activitibpmn:version1>
      </jbi:provides>
      
      <jbi:consumes
           interface-name="archiveService:archive"
           service-name="archiveService:archiveService">
         <petalsCDK:timeout>15000</petalsCDK:timeout>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
Hide
Christophe DENEUX added a comment - Tue, 15 Sep 2015 - 13:06:19 +0200 - edited

Supported through PETALSSEACTIVITI-13

Show
Christophe DENEUX added a comment - Tue, 15 Sep 2015 - 13:06:19 +0200 - edited Supported through PETALSSEACTIVITI-13

People

Dates

  • Created:
    Tue, 15 Sep 2015 - 11:29:09 +0200
    Updated:
    Fri, 5 Aug 2016 - 12:04:52 +0200
    Resolved:
    Tue, 15 Sep 2015 - 13:05:58 +0200