Petals SE Flowable

Add support of error returned to service task

Details

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

    Petals services can return a reply, a fault or an error. Reply and fault are natively supported by the webservice task implementation of Flowable, but error are not.
    Error could be supported as processed as a common SOAP fault:

    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <soap:Fault>
           <faultcode>soap:Server</faultcode>
           <faultstring>java.lang.Exception: A dummy error occurs
    	at org.ow2.petals.flowable.ServiceProviderCallActivityProcessTest$4.provides(ServiceProviderCallActivityProcessTest.java:433)
    	at org.ow2.petals.component.framework.junit.helpers.SimpleComponent.receiveRequestAsExternalProvider(SimpleComponent.java:364)
            ...
           </faultstring>
        </soap:Fault>
      </soap:Body>
    </soap:Envelope>
    Show
    Petals services can return a reply, a fault or an error. Reply and fault are natively supported by the webservice task implementation of Flowable, but error are not. Error could be supported as processed as a common SOAP fault:
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <soap:Fault>
           <faultcode>soap:Server</faultcode>
           <faultstring>java.lang.Exception: A dummy error occurs
    	at org.ow2.petals.flowable.ServiceProviderCallActivityProcessTest$4.provides(ServiceProviderCallActivityProcessTest.java:433)
    	at org.ow2.petals.component.framework.junit.helpers.SimpleComponent.receiveRequestAsExternalProvider(SimpleComponent.java:364)
            ...
           </faultstring>
        </soap:Fault>
      </soap:Body>
    </soap:Envelope>
  • Environment:
    -

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
16m 47s
1
Christophe DENEUX
Thu, 27 Jul 2017 - 12:59:04 +0200
Open Open In Progress In Progress
4s
1
Christophe DENEUX
Thu, 27 Jul 2017 - 12:59:08 +0200
In Progress In Progress Resolved Resolved
4h 55m
1
Christophe DENEUX
Thu, 27 Jul 2017 - 17:54:57 +0200

People

Dates

  • Created:
    Thu, 27 Jul 2017 - 12:42:17 +0200
    Updated:
    Thu, 27 Jul 2017 - 17:54:56 +0200
    Resolved:
    Thu, 27 Jul 2017 - 17:54:56 +0200