Forum Discussion

dkahraman's avatar
dkahraman
Ideator I
7 years ago

Error for the New Workflow for Components

Hi,

I would like to simplify the Express ECO workflow for "component" classification Parts. I created a new Express ECO workflow by saving as the original.

I am using an internal method to get different workflows for different classifications. So I defined the new workflow for the "Components" in the method.

I deleted "In Planning" activity in this new workflow. However, I get the below. I can not understand what the exact error is and how to fix it.

"Aras.Server.Core.ItemIsLockedException"

thanks

Duygu

10 Replies

  • You can extend the Method so it fits multiple purposes. The Method is designed for the Express ECO, Express DCO and others.

    I think it possible to adapt the Method so it works for multiple ECO workflows. Around 1001 you can find the Express ECO part.

    An example: Around line line 1238 you find the ProcessTransition. Here do you can add own workflow paths if they differ from the original. For example I added an additional handler for a rollback option "In Work -> In Planning"  so I can use the Express ECO without Plan review.

    You wil also have to take care for Validation parts. It´s a lot of work.

    But do you really need a second workflow? I also used a dynamic Express ECO, but without using a second workflow. I use dynamic assignmens and dynamic path selection for simplifieng the Express ECO for certain Item conditions.

    • dkahraman's avatar
      dkahraman
      Ideator I

      Dynamic assignments sound better but I did not try that. I should investigate it.

  • What is you start activity? When you delete the Planning activity, I assume you want to directly start In Work?

    I assume your ExpressECO want to modifiy the Affected Items, but doesn´t have the appropriate rights to achieve this. Do you modify the transition handlers for this use case?

    • dkahraman's avatar
      dkahraman
      Ideator I

      Hi, start activity is "Start" and start state in the lifecycle is "New".

      Should I start with "In Work" state? 

  • I wouldn´t start from 'In Work'. I mainly wanted to point out, that when you change the Express ECO workflow, you also have to change Method 'PE_ChangeItemTransition'. The Express ECO is probably the most complex ChangeProcess in Aras. It has a lot of background intelligence.

    • dkahraman's avatar
      dkahraman
      Ideator I

      I see. But there is another ECO workflow for other Parts like "Assembly" class and it uses the same method.

  • You could use this community project: https://github.com/ArasLabs/auto-workflow-assignment

    Assignments are set, as soon as an Activity is active. So you do not use the predefined assignments in the workflow.

    The example defines assignments by reviewers that are set in the change process. Bu instead of using assignments by reviewerr, you can also choose the assigments by classifcation. This way you can use the same workflow, but can achieve more specific assignments.