I'm trying to get process id in "map participant to users" using hash variable.But it doesn't work. How do I get process id in map participant?

  • No labels

4 Comments

  1. Use #assignment.processId#

    See Hash Variables

    1. Thanks for the sharing. The following code is working in form's beanshell, but not working in map participant 's beanshell

      1. Hi Harold,

        You can try the following as documented in Bean Shell Programming.

        ?I have tried this out in one of my processes, here's an example.

        System.out.println( workflowActivity.getProcessId() );
        System.out.println( workflowActivity.getProcessDefId() );
        System.out.println( workflowActivity.getActivityDefId() );

        You will get the following:-

        64_leaveApp_leaveProcess
        leaveApp#1#leaveProcess
        submitLeave

        See WorkflowActivity.java for the list of methods that you can access.

        Hope this helps.

        Cheers.