Hello everybody,
first of all sorry for bothering the dev-list but I've been trying around for some
time now and would like to know if this is possible or not. Actually I just want to do a
very simple thing. I have process variables and I would like to use them as parameter
values when performing java tasks. So I specify the argument of a java task like this:
<arg><object expr="#{attendeeId}" /></arg>
! Supposing attendee is a process variable of type String. !
Caused by: java.lang.Exception: couldn't create argument 0: script evaluation er
ror: javax.el.PropertyNotFoundException: Cannot find property attendeeId
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(Object
Descriptor.java:348)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.jav
a:79)
Is this possible? Ronald thought it was. How does JUEL know that attendeeId is of simple
type and that there isn't a getter to be invoked like in the examples given in the
documentation? For #{order.owner} JUEL would inkove order.getOwner() on the bean.
Thanks for your help.
Sebastian
--
Mit freundlichen Grüßen / Best regards / Cordialement
Sebastian Schneider, schneider(a)dvz.fh-aachen.de
Show replies by date
Hello everybody,
again sorry for bothering the list but this really gave me a hard time
today and let me feel really stupid. Everything works fine with
accessing variables of simple types like String. The automated activity
already ran when I set the instance variables so there was really no
variable to access.
Have a nice evening
Sebastian
--
Mit freundlichen Grüßen / Best regards / meilleures salutations
Sebastian Schneider <schneider(a)dvz.fh-aachen.de>