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

Christophe DENEUX made changes - Thu, 27 Jul 2017 - 12:59:04 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Thu, 27 Jul 2017 - 12:59:08 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Thu, 27 Jul 2017 - 12:59:53 +0200
Description 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.
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:
{code}
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
       <faultcode/>
       <faultstring/>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
{code}
Christophe DENEUX made changes - Thu, 27 Jul 2017 - 17:54:36 +0200
Description 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:
{code}
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <soap:Fault>
       <faultcode/>
       <faultstring/>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
{code}
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:
{code}
<?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>
{code}
Hide
Christophe DENEUX added a comment - Thu, 27 Jul 2017 - 17:54:56 +0200

Support added in master branch

Show
Christophe DENEUX added a comment - Thu, 27 Jul 2017 - 17:54:56 +0200 Support added in master branch
Christophe DENEUX made changes - Thu, 27 Jul 2017 - 17:54:57 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.0.0 [ 10741 ]
Resolution Fixed [ 1 ]
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