Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
8 years ago

Workflow Activity Completion

I am trying to complete workflow assignment with AML but it is acing weird.   My request xml looks like given below: <Item action="EvaluateActivity" type="Activity"> <Activity>DE33049EBA694267A44CA41A002E7C51</Activity> <ActivityAssignment>99E2CFE208154E4FBD70E75DE6AB4B74</ActivityAssignment> <Paths><Path>2312B2C556DC4C028F740433E629C934</Path>Submit</Paths> <DelegateTo>0</DelegateTo> <Tasks><Task Completed="1">03D548CE54834C27BDB7974175C8A43F</Task> <Task Completed="1">DEB21FCD697942DC91DFCBECB21747A4</Task></Tasks> <Variables><Variable id="451171CA8A144AD8B87E065216208B02">vb cvbnvxn</Variable> </Variables> <Authentication mode=""/> <Comments>xcbxcvb xcxcbx</Comments> <Complete>0</Complete> </Item> My response reads like the following: <SOAP-ENV:Envelope><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>The action "",EvaluateActivity is not supported.</faultstring><detail><af:legacy_detail>The action "",EvaluateActivity is not supported.</af:legacy_detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>   Further more response in nash with the same request is following: <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="">www.aras.com/.../faultcode><faultstring><![CDATA[Failed to get the Activity Tasks.]]></faultstring><detail><af:legacy_detail><![CDATA[Failed to get the Activity Tasks.]]></af:legacy_detail><af:legacy_faultstring><![CDATA[Workflow: EvaluateActivity: Specified Tasks are not found for Activity]]></af:legacy_faultstring></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>   I looked at the request xml using Admin->saveRequest setting and my xml matches with what is sent by the official client. What am I missing?          

4 Replies

  • Update:   By adding ids of task,activity and assignment as attributes, I was able to update the assignment using nash but  using soap still fails for the same xml with the same error. It does not matter if I use EvaluateActivity or ApplyItem as action in SOAP header.
  • From the innovator admin wiki. Your request should look like the following:
    <!-- SOAP_ACTION = EvaluateActivity, ApplyAML, or ApplyItem -->
    <AML>
     <Item type="Activity" action="EvaluateActivity">
     <Activity>{Activity ID}</Activity>
     <ActivityAssignment>{Assignment ID}</ActivityAssignment>
     <Paths>
     <Path id="{ID of the chosen Path}">{Name of the chosen Path}</Path>
     </Paths>
     <DelegateTo>{Either '0' or the ID of the user to delegate to.}</DelegateTo>
     <Tasks>
     <Task id="{ID of the task}" completed="{'0' or '1' indicating if the task was completed}"></Task>
     </Tasks>
     <Variables>
     <Variable id="{ID of the variable}">{Value of the variable}</Variable>
     </Variables>
     <Authentication mode="{Type of authentication (e.g. e-signature)}">{Password for the type of authentication}</Authentication>
     <Comments>{Comments}</Comments>
     <Complete>{'0' or '1' indicating if the activity is complete}</Complete>
     </Item>
    </AML>
    It looks like the Task ID cannot be placed within the task tag, but in an attribute on that tag.
  • This thing still fails with SOAP .   <Item action="EvaluateActivity" type="Activity"><Activity>06F172F515644FB3A9EA491F2CE73070</Activity><ActivityAssignment>912A54BE188C4C00A9A68448D78AA6F3</ActivityAssignment><Paths><Path id="93BE1B7ABAB94D008D3B14E0867E5F0D"/></Paths><DelegateTo>0</DelegateTo><Tasks/><Variables/><Authentication mode=""/><Comments>5 S5 P0WN688E9SOZNDFBRJOAOY- OCFLTQ673JZRUMOFGATWTX-41ORX1SDQGYER9O7 VS8UUZHV7VYW5FGQE53MFCWVY13-BTRJIETQTJXS SPUI87XDFAQMJVXHTGLIQPBLM-31OBF82RMHSJI0Q0TJ6C CEQTUVFZSAQQF8JUJ4EPSCSGF QRNNJADQ3ZH4P1EIT</Comments><Complete>1</Complete></Item>     Here is the soap error response. <SOAP-ENV:Envelope><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>The action "",ApplyItem is not supported.</faultstring><detail><af:legacy_detail>The action "",ApplyItem is not supported.</af:legacy_detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>     Same request with nash is however successful. Somehow the soap action gets messed up. All other soap calls are successful. <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../ApplyItemResponse><Message><event name="ids_modified" value="06F172F515644FB3A9EA491F2CE73070|DFA86CE86BCF4365840874169603AF55|C2D3608E5C1143A39FAC5D7A9240BE55|5703D1280DD447FD9BA2468E21CC607D"/></Message></SOAP-ENV:Body></SOAP-ENV:Envelope>
  • <env:Envelope xmlns:env="">www.w3.org/.../soap-envelope" xmlns:m="">http://www.aras-corp.com/"> <env:Header/> <env:Body> <Item action="EvaluateActivity" type="Activity"> <Activity>E2962A681F074022B6691A4F68D5509D</Activity><ActivityAssignment>5E651BA9DCB44B31B3EB02DF8F6EC97B</ActivityAssignment> <Paths><Path id="38D2B2AB661A4DD78EE92656879B50BC"/> </Paths><Authentication mode="none"/> <Tasks> <Task Completed="1" id="7A44C8C5884E4DF4B4E3F9084C0E356B"/> <Task Completed="1" id="161BDE8EE64B47AFABEA2CC91492367D"/> <Task Completed="1" id="74ACC37F3FDF43BFA73D517268152A0D"/> </Tasks> <Variables/> <Comments>wplybt.wuqzoqho.ieetv73 .bu8slbatv1aes1w7q1bq2gld</Comments> <Complete>1</Complete> </Item> </env:Body></env:Envelope> On a different server (SP12) I get the following error with the request above which works just fine in nash(with both soap 1.1 and 1.2):   <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="">www.aras.com/.../faultcode><faultstring><![CDATA[ Database Name Or Database Description Is Wrong. (Check your request and server configuration file)]]></faultstring><detail><af:legacy_detail><![CDATA[ Database Name Or Database Description Is Wrong. (Check your request and server configuration file)]]></af:legacy_detail><af:exception message=" Database Name Or Database Description Is Wrong.&#xD;&#xA;(Check your request and server configuration file)" type="Aras.Server.Core.InnovatorServerException" /></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>