Forum Discussion

Morgan's avatar
Morgan
Ideator I
4 years ago

Dynamically Add Workflow Process Path

Hi Community,

Just wondering if this error is common.

Basically I have a workflow with multiple activities in sequence. I also have another activity that is not in the sequence and has no paths to it (we'll call this activity X).

I am looking to, via an action, create a workflow process path to activity X and then vote that path. I am getting an insufficient permission error to add a workflow process path. Am I missing something here? Can Add for that item type shows admin has rights. Is there another item I need to take into account?

5 Replies

  • Not sure if this will help, but on some of our methods we have a couple of lines that set permissions before doing anything else.  If you get this working, I would love to know how.

    C# Method

    s_Daemon is an Identity that was set up prior to me.  It is supposed to be similar to the Aras PLM Identity.

    Aras.Server.Security.Identity s_Identity = Aras.Server.Security.Identity.GetByName("s_Daemon");
    Boolean PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(s_Identity);

    • Morgan's avatar
      Morgan
      Ideator I

      I thought about this but I am testing using an admin account and the Workflow Process Path already has Can Add for Administrators, and even World so I am not sure what else is preventing the permissions.

      • Nathan_H_'s avatar
        Nathan_H_
        Ideator I

        They will also need Edit permissions to be able to edit an existing item.