Hi All,

This issue happens with IDM 4.5.3.
I am trying to approve an workflow via SOAP, and hitting the error:
com.novell.soa.af.impl.soap.AdminException={_Reaso n=Entity not found.}

The workflow is very simple - Start activity with only the reason field
on the form, one approval activity with only reason and the default
apwaComment field. The Start process uses:

Request:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:startRequest>

<ser:arg0>cn=approvaltest,cn=RequestDefs,cn=AppCon fig,cn=rbpm,cn=ds,o=system</ser:arg0>
<ser:arg1>cn=uaadmin,ou=sa,o=data</ser:arg1>
<ser:arg2>
<ser:dataitem>
<ser:name>reason</ser:name>
<ser:value>
<ser:string>Testing</ser:string>
</ser:value>
</ser:dataitem>
</ser:arg2>
</ser:startRequest>
</soapenv:Body>
</soapenv:Envelope>

Response:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:startResponse
xmlns="http://www.novell.com/provisioning/service"
xmlns:ns1="http://www.novell.com/provisioning/service">
<result>08364d683e174d3a91634496377b41c7</result>
</ns1:startResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Retrieving all processes I can see the running workflow details:

Request:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:getAllProcessesRequest/>
</soapenv:Body>
</soapenv:Envelope>

Response:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:getAllProcessesResponse
xmlns="http://www.novell.com/provisioning/service"
xmlns:ns1="http://www.novell.com/provisioning/service">
<ProcessArray>
<process>
<completionTime xsi:nil="1"/>
<creationTime>2016-03-04T15:03:53</creationTime>
<initiator>cn=uaadmin,ou=sa,o=data</initiator>

<processId>cn=approvaltest,cn=RequestDefs,cn=AppCo nfig,cn=rbpm,cn=ds,o=system</processId>
<recipient>cn=uaadmin,ou=sa,o=data</recipient>
<requestId>08364d683e174d3a91634496377b41c7</requestId>
<processStatus>Running</processStatus>
<approvalStatus>Processing</approvalStatus>
<processName>approvaltest</processName>
<valueOfProcessStatus>0</valueOfProcessStatus>
<valueOfApprovalStatus>0</valueOfApprovalStatus>
<version>20</version>
<engineId>rbpm001</engineId>
<proxy xsi:nil="1"/>

<correlationId>UserApp#RemoteStartWorkflow#637de9c e-0ef8-41d0-b52b-6f0e8479b8bc</correlationId>
</process>
....
</ProcessArray>
</ns1:getAllProcessesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


From the above and the documentation the forward request would use the
work id on the arg0 field. So I tried:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:forwardRequest>
<!--Optional:-->
<ser:arg0>08364d683e174d3a91634496377b41c7</ser:arg0>
<ser:Action>APPROVE</ser:Action>
<ser:arg3>Test comment</ser:arg3>
</ser:forwardRequest>
</soapenv:Body>
</soapenv:Envelope>

and it failed with:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Client</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<ns1:AdminException
xmlns="http://www.novell.com/provisioning/service"
xmlns:ns1="http://www.novell.com/provisioning/service">
<ns2:reason
xmlns="http://www.novell.com/soa/af/impl/soap"
xmlns:ns2="http://www.novell.com/soa/af/impl/soap">Entity not
found.</ns2:reason>
</ns1:AdminException>
<stackTrace
xsi:type="xsd:string">com.novell.soa.af.impl.soap. AdminException={_Reason=Entity
not found.}
at
com.novell.soa.af.impl.soap.ProvisioningImpl.creat eAdminException(ProvisioningImpl.java:403)
at
com.novell.soa.af.impl.soap.ProvisioningImpl.forwa rdAsProxyWithDigitalSignature(ProvisioningImpl.jav a:2623)
at
com.novell.soa.af.impl.soap.ProvisioningImpl.forwa rd(ProvisioningImpl.java:2496)
at
com.novell.soa.af.impl.soap.Provisioning_ServiceSk eleton._invoke(Provisioning_ServiceSkeleton.java:1 944)
at
com.novell.soa.ws.server.ServletSkeleton.invokeEnd Point(ServletSkeleton.java:208)
at
com.novell.soa.ws.impl.soap.MessageHandlerInvoker. invokeServerMessageHandlers(MessageHandlerInvoker. java:348)
at
com.novell.soa.ws.impl.soap.SOAPHandler.handleServ erRequest(SOAPHandler.java:84)
at
com.novell.soa.ws.impl.rpc.ServerDelegateImpl.hand leServerRequest(ServerDelegateImpl.java:92)
at
com.novell.soa.ws.server.ServletSkeleton.handleReq uest(ServletSkeleton.java:107)
at
com.novell.soa.ws.server.ServletSkeleton.doPost(Se rvletSkeleton.java:317)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at com.novell.common.auth.JAASFilter.doFilter(JAASFil ter.java:145)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at
com.novell.common.auth.saml.AuthTokenGeneratorFilt er.doFilter(AuthTokenGeneratorFilter.java:115)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at com.novell.common.auth.sso.SSOFilter.doFilter(SSOF ilter.java:129)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at
com.novell.soa.common.i18n.BestLocaleServletFilter .doFilter(BestLocaleServletFilter.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at
com.novell.common.HttpSecurityHeadersFilter.doFilt er(HttpSecurityHeadersFilter.java:132)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:103)
at
org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1070)
at
org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)</stackTrace>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Exact same error and stack for the attempts below:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:forwardRequest>
<!--Optional:-->

<ser:arg0>UserApp#RemoteStartWorkflow#637de9ce-0ef8-41d0-b52b-6f0e8479b8bc</ser:arg0>
<ser:Action>APPROVE</ser:Action>
<ser:arg3>Test comment</ser:arg3>
</ser:forwardRequest>
</soapenv:Body>
</soapenv:Envelope>

and (this one I did not expect to work, figured it was worth a try):

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:forwardRequest>
<!--Optional:-->

<ser:arg0>cn=approvaltest,cn=RequestDefs,cn=AppCon fig,cn=rbpm,cn=ds,o=system</ser:arg0>
<ser:Action>APPROVE</ser:Action>
<ser:arg3>Test comment</ser:arg3>
</ser:forwardRequest>
</soapenv:Body>
</soapenv:Envelope>

all came back with the same error. Does anyone know what needs to go
into the arg0 for the forward to work?

Cheers,

-Fernando