Need Guidance: Prevent On Close Server Event to get called when there is Error (when voting) and the CM Activity is not Closed?
Hello All, I'm creating a server-side method that sends an email to the Change Leader. It gets invoked "on close" in association with a Change Management workflow activity. The email should be sent only when the activity is closed, and the workflow progresses to the next activity. However, if the user votes on the activity while there are missing affected files related to the Change Management, an error message is displayed stating "The New Number field is required when Action is set to 'Add'." I want to find a way to prevent the email from being sent when such and similar errors exist. I tried to use activity.getProperty("state", ""); to check if the state of the activity changes from Active to Closed. However, this property does not update (when the method is invoked) while the mentioned error exists or not. Currently, I'm thinking of a way to access this error message content from my method and act accordingly. I tried isError() and it gives 0 (no error), getErrorString() and getErrorDetails() return an empty string. I would appreciate it a lot if someone can help me with it. Best Regards, abduSolved0Views0likes1CommentBringing items in through AML package as 'Released'
Hello all, I am working on importing custom itemtypes to load via AML package as part of new builds. Due to how a customized contextual window displays these items, I need the items to be in a 'Released' state when they are brought in. (The window will only display 'Released' items). However, I am having difficulties getting the items to be in a 'Released state' 1. I've tried adding a <state>Released</state> to each item being brought in 2. I've tried adding a postAMLpackagedeployment script that adds a <state>Released</state> to each item The catch is, I need the items to abide by its lifecycle/workflow normally when edited and the state returns to 'New'. Is this possible?0Views0likes3CommentsREST API, `Value cannot be null.\r\nParameter name: criteria` trying to get a Workflow
Hello everyone. I'm using Aras 12SP09 and I'm working with the REST API. I have an AML call that I would like to transform to a REST call, it is: <Item type='Workflow' action='get' select='related_id(*)'> <source_id>UUID</source_id> <related_id condition='is not null'/> </Item> I turned it into the following REST call: .../server/odata/Workflow?$filter=source_id eq 'UUID' but then I have an error " Value cannot be null.\r\nParameter name: criteria ". What I don't understand is, the same syntax is working perfectly fine when trying to get a Property for example: .../server/odata/Property?$filter=source_id eq 'UUID' . Is there something different for workflows? What am I doing wrong?363Views0likes0CommentsSet workflow activity via action
Hi all, I was wondering if it was possible to set the workflow activity via an action. For example, I want a cancel action instead of having multiple vote paths to the cancel activity in a workflow. This would allow a user to cancel the item from any point. This action should set the lifecycle state to Cancelled and the Workflow Activity to Cancelled. Can this be accomplished without a voting path?Solved3.1KViews0likes4CommentsInstantiating a workflow activity based on number of tasks
Hi Community, Random question here... I want to setup a workflow that instantiates parallel workflows based on the number of tasks. Basically the user will attach X number of related documents and I want to be able to set a parallel path for each document. I have played with parallel paths when I knew how many were needed, but is it possible to generate them on the fly in the workflow based on number of documents? All of the activities would need to be the same. The other option is to prepare X number and then set any unused to automatically process but let me know if anyone has done anything like this.777Views0likes0Comments'Submit' Button to replace sign off tab
Hello community, We have some non-power users that we are hoping to simplify form submission for. I had the idea of either a cui or form button that runs an action that bundles the "vote now" from the sign off with setting the default path and completing the vote. Has anyone done something like this? The other thought I had was to just set the first workflow activity as the responsibility of the next owner however so that after initially adding the form, the item would essentially just be submitted on clicking done. Thoughts? Any other implementation ideas?Solved3KViews0likes3Commentson-due error
Hello, I have a production system where I have 2 almost identical methods, one is triggered in ond-ue and is failing, the second in the timeout specified in the workflow and that one is being detonated. Can you help me to know what may be failing? or how can I identify the error?1.5KViews0likes1Comment