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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi Bubble,
Re: what's the syntax using execution context?
ExecutionContext context;
...
VariableType variable = (VariableType)context.getVariable(variableName);
Regards,
Andrei
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
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
no body could help me?
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
Hi Bubble,
Map variables = executionServiceDelegate.getVariables(subject, taskStub.getId());
Look at method handle() of DatabaseTaskHandler class.
Regards,
Andrei
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
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
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
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
Thanks guys, it works now
Bubble
Hi,
Congratulations ;-)
Regards,
Vitalyi S