Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle BPM Human Task Comments Callback -- Exception When Instantiating AppModule in Callback Class

32UDec 9 2014 — edited Jan 23 2015

Oracle BPM Version 11.1.1.7.

In a Humantask.task, Events tab, Content Change Callbacks section, I have entered the fully qualified class name of a class that implements NotesStore and the addNote and getNotes methods.

The class uses public methods in an AppModule to write and read comments using our custom table and these methods were well tested during development using the the BC tester and a temporary main in the callback class.

The project is compiled to a jar and placed in the BPM project's SCA-INF/lib folder, then the SCA and related ADF human task forms are deployed.

When a comment is made in the out of box human task comments section during a process instance, the class is called, but an exception occurs in the getNotes method at the line the AppModule is created.

In the callback class, the AppModule is created as so:

AuditModule service = (AuditModule)Configuration.createRootApplicationModule("com.co.modules.AuditModule", "AuditModuleLocal");

The relevant error seems to be:

javax.naming.NamingException [Root exception is java.lang.ClassCastException: oracle.jbo.mom.DefinitionContextAgeable] at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:68)...

Any ideas?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 20 2015
Added on Dec 9 2014
1 comment
1,018 views