Menu

retrieve actor of the swimlane

Help
2006-05-12
2013-03-11
  • bubblelicious

    bubblelicious - 2006-05-12

    Hi,

    I have develop a periodic mail notification , it work when I send the name of an actor. But how could 
    I retrieve the name of the actor define in the swimlane.

    I could create a process variable and initialise it from an action handler but what's the syntax using execution context?

    or did it has an other way?

    Regards,
    Bubble

     
    • Andrei Mikheev

      Andrei Mikheev - 2006-05-12

      Hi Bubble,

      Re: what's the syntax using execution context?

      ExecutionContext context;

      ...

      VariableType variable =  (VariableType)context.getVariable(variableName);

      Regards,
      Andrei

       
    • bubblelicious

      bubblelicious - 2006-05-15

      Hi, I have try that syntax but it dont work

      ctx.setVariable("user",(String)ctx.getVariable("manager"));

      How could I retrieve the actor assign to a swimlane?

      Regards,
      Bubble

       
      • Vitaliy Semochkin

        Hi,

        re:I have try that syntax but it dont work 
        ctx.setVariable("user",(String)ctx.getVariable("manager"));

        what does didn't work mean?
        what happens?

        re:How could I retrieve the actor assign to a swimlane?

        you can retrieve only code of actor.
        swimlane contains code (not actors)

        Regards,
        Vitaliy S

         
    • bubblelicious

      bubblelicious - 2006-05-16

      no body could help me?

       
    • bubblelicious

      bubblelicious - 2006-05-16

      it has somthing that I don't understand ,
      when I initialize a swimlane I declare a variable with the same name then the swimlane but it's impossible to retrieve his value from the context has the other variable why?

      And is it possible to retrieve the actor of a swimlane without using context just with his name?

      plz vitaly help me to solve my problem I have to finish this for friday and it's the only thing that doesn't work

      Regards,
      Bubble

       
      • Andrei Mikheev

        Andrei Mikheev - 2006-05-16

        Hi Bubble,

        Map variables = executionServiceDelegate.getVariables(subject, taskStub.getId());

        Look at method handle() of DatabaseTaskHandler class.

        Regards,
        Andrei

         
    • bubblelicious

      bubblelicious - 2006-05-17

      re:what does didn't work mean?
      what happens?

      when I'm using that syntax it return the value "-4"

      re:you can retrieve only code of actor.
      swimlane contains code (not actors)

      What's the syntax to get the code of actor?

      With this code, could I get the name from the DB?

      Regards,
      Bubble

       
      • Andrei Mikheev

        Andrei Mikheev - 2006-05-17

        Hi Bubble,

        Re: when I'm using that syntax it return the value "-4"

        It may be the real user code. If you don't enter user code in "Create new Actor" form then it is created automatically (this codes are sequential negative numbers).

        So, check "code" field in "Executor Details" form.

        Regards,
        Andrei

         
    • bubblelicious

      bubblelicious - 2006-05-17

      Hi Andrei,

      I had just check and it's the good code value for my user
      thanks

      Does a method exist to retrieve the name with the code or do I have to take it from the DB?

      Regards,
      Bubble

       
    • Andrei Mikheev

      Andrei Mikheev - 2006-05-17

      Hi Bubble,

      Re: Does a method exist to retrieve the name with the code or do I have to take it from the DB?

      First - create Actor class:

      Actor actor = DelegateFactory.getInstance().getExecutorServiceDelegate().getActorByCode(subject, code);

      Second - get actor name:

      actor.getName()

      Regards,
      Andrei

       
    • bubblelicious

      bubblelicious - 2006-05-17

      Thanks guys, it works now

      Bubble

       
    • Vitaliy Semochkin

      Hi,

      Congratulations ;-)

      Regards,
      Vitalyi S

       

Log in to post a comment.