How to edit an item in AML with import/export tool
hello, i post that here as a reminder because i was not able to find information about this : <AML> <Item type="ItemType" id="0E4B48B11212429DB971*BFB026ADB97" action="edit"> Add / Delete <allow_private_permission>1</allow_private_permission> <auto_search>0</auto_search> <class_structure><![CDATA[<class id="0E4B48B112124*9DB9714BFB026ADB97"><class id="87D3738F6C794C94*E823642A9E50A38" name="Formal" /><class id="D457200A964B48509468B7E5497C9D43" name="Informal" /><class id="D16D866888014CC3A*F06A50B6DA653E" name="**" /></class>]]></class_structure> <enforce_discovery>1</enforce_discovery> <hide_where_used>0</hide_where_used> <history_template keyed_name="Default" type="History Template">3BC16EF9E52B4F9792AB76*CE0492F29</history_template> <implementation_type>table</implementation_type> <instance_data>***</instance_data> <is_dependent>0</is_dependent> <is_relationship>0</is_relationship> <is_versionable>1</is_versionable> <label xml:lang="en">***</label> <label_plural xml:lang="en">**t</label_plural> <manual_versioning>0</manual_versioning> <revisions keyed_name="Default" type="Revision">7FE395DD8B9F4E10907*6A34B733D75E</revisions> <show_parameters_tab>1</show_parameters_tab> <structure_view>tabs on</structure_view> <unlock_on_logout>0</unlock_on_logout> <use_src_access>0</use_src_access> <name>***</name> <Relationships> <Item type="ItemType Life Cycle" id="B6ABA8AAD6934C6DBF*0A320136B24FE" action="add"> Delete <class_path>Informal</class_path> <related_id keyed_name="name" type="Life Cycle Map">582B759C17CC4*979466C730E7ECCFE5</related_id> <sort_order>256</sort_order> <source_id keyed_name="**" type="ItemType" name="**">0E4B48B11212429*B9714BFB026ADB97</source_id> </Item> <Item type="ItemType Life Cycle" id="B6ABA8AAD6934C6DBF*0A320136B24FE" action="add"> Delete <class_path>Informal</class_path> <related_id keyed_name="name" type="Life Cycle Map">582B759C17CC4797946*C730E7ECCFE5</related_id> <sort_order>256</sort_order> <source_id keyed_name="**" type="ItemType" name="GTSI_GTR_SNAPSHOT">0E4B48B11212429DB*714BFB026ADB97</source_id> </Item> </Relationships> </AML>2.7KViews1like0Comments"Aras.Server.Core.ItemNotFoundException" When transitioning from "In Work" to "Preliminary" with ECO Express's WF Activity
Hi Community I'm having an issue and I'm hoping the community can help me solve it! In normal ECO Express WF of the Creator's operation goes to " Start--> Preliminary --> In Work" ,but what I'm trying to do is " In Work --> Preliminary" In other words, moving the workflow back one step. Therefore I'm using the following peice of code for dynamic voting of workflow : Dim sbVoteXml As New Text.StringBuilder("") sbVoteXml.Append("<Item type=""Activity"" action=""EvaluateActivity"">") sbVoteXml.Append(" <Activity>{0}</Activity>") sbVoteXml.Append(" <ActivityAssignment>{1}</ActivityAssignment>") sbVoteXml.Append(" <Paths>") sbVoteXml.Append(" <Path id=""{2}"">{3}</Path>") sbVoteXml.Append(" </Paths>") sbVoteXml.Append(" <DelegateTo>0</DelegateTo>") sbVoteXml.Append(" <Tasks />") sbVoteXml.Append(" <Variables />") sbVoteXml.Append(" <Authentication mode="" \ "" />") sbVoteXml.Append(" <Comments></Comments>") sbVoteXml.Append(" <Complete>1</Complete>") sbVoteXml.Append("</Item>") Dim itmVote As Item = Inn.newItem() itmVote.loadAML(String.Format(sbVoteXml.ToString(), sActivityID, sAssignID, sPathID, In_REVIEW)) itmVote = itmVote.apply()However, I got the error "Aras.Server.Core.ItemNotFoundException"...The "Preliminary" activity state is "closed", which may be the cause, but I don't know how to solve it. Do you know how to move the activity back one by using a server method etc.? In addition, should I think about "PE_ChangeItemTransition" too?(This Aras's standard method perform validation of Change item(ECN, ECO, etc..) which situated in state or promoted to another state)Could someone please let me know why this error is happening. I will be happy to help you with other information as needed. Thank you.1.7KViews1like1Comment