Have you also defined the "fact" process variable? You can do this by
clicking on the background of you process in the editor and updating the
variables parameter, or in the header in xml:
<header>
<variables>
<variable name="fact" >
<type name="org.drools.process.core.datatype.impl.type.ObjectDataType"
className="org.drools.ProvFact" />
</variable>
</variables>
</header>
Otherwise the process won't know where to find the "fact" variable
(because you could have multiple, nested variable scopes if you start
using composite nodes).
Kris
Quoting Stuart Grimshaw <sgrimshaw(a)plus.net>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to access the fact object from within my WorkItemHandler,
but
I'm struggling.
See
http://pastie.org/613312 for the various bits of code, but my
problem is that when I set a breakpoint in the WorkItemHandler and
call
workItem.getParameters(), the result is empty.
I think I'm creating the Map correctly and inserting it into the
process
scope, but maybe someone can spot what I'm doing wrong?
- --
+
| Stuart Grimshaw Broadband Solutions
for
| Lead Developer Home & Business
@
| Plusnet Plc
www.plus.net
| Registered Office: Internet House, 2 Tenter Street, Sheffield, S1
4BY
| Registered in England no: 3279013
+ --------------- Plusnet - ISPA Best Consumer ISP 2008
---------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAkqqJ1YACgkQKVVpabZzO7mqlACfQp9MinLoBCH6b5o4cShcZI/T
/tQAniNgBnWVMw/2Ka7w1jJvwYZtMLVi
=5RJV
-----END PGP SIGNATURE-----
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users