java - Oracle BPM Human Task Comments Callback Errors When Instantiating AppModule in Called Class -


oracle bpm version 11.1.1.7. in humantask.task, events tab, content change callbacks section, have entered qualified class name of class implements notesstore , addnote , getnotes methods.

the class uses public methods in appmodule write , read comments using our custom table , these methods tested during development using the bc tester , temporary main in callback class.

the project compiled jar , placed in bpm project's sca-inf/lib folder, sca , related adf human task forms deployed.

when comment made in out of box human task comments section during process instance, class called, exception occurs in getnotes method @ line appmodule created:

java.lang.classcastexception: oracle.jbo.common.ampool.poolmgr

in class, appmodule created so:

auditmodule service = (auditmodule)configuration.createrootapplicationmodule("com.co.modules.auditmodule", "auditmodulelocal"); 

i've tried adding web.xml config file sca bpm project filter discussed in post (last answer). discusses triggering adf context initialization, i'm still getting error.

the question is, how can use call human task call method uses appmodule public methods db work? oracle's documentation sparse in area (29.11.1).

update

turns out stack trace shows having problems looking data source name , throwing jbo error. if runs in this, check stack trace other issues.

update2

finally got write task comments custom comments table. turns out doesn't seem possible use appmodule/model approach in comments callback class there appears no way initiate needed adf context when class called. rewriting class access db directly in code comment callback class write table. but, getting same error this post. namely:

exception invoking method xml data control. cause:oracle.bpel.services.workflow.client.workflowserviceclientexception: java.rmi.unmarshalexception: cannot unmarshaling return; nested exception is:  supplemental detail java.io.ioexception: error: unexpected type encountered in writeexternal oracle.bpel.services.workflow.client.workflowserviceclientexception: java.rmi.unmarshalexception: cannot unmarshaling return; nested exception is:  java.io.ioexception: error: unexpected type encountered in writeexternal 

i suspect oracle framework issue types passed notesstore implementation passed framework:

public class commentscallback implements notesstore, serializable...      public list<commenttype> getnotes(task task) 

has solved this? full stacktrace at:

https://community.oracle.com/thread/3638940

after discussion oracle, key avoiding unexpected type error use objectfactory populate commenttype object. while took different approach ultimately, below code provided oracle example , might trying this:

import oracle.bpel.services.workflow.task.model.objectfactory;  import oracle.bpel.services.workflow.task.model.commenttype;  import oracle.bpel.services.workflow.task.model.identitytype;   ...  objectfactory factory = new objectfactory()   commenttype commenttype = factory.createcommenttype();   identitytype updatedby = factory.createidentitytype();  updatedby.setid("some user");  updatedby.settype(iworkflowconstants.identity_type_user);  updatedby.setdisplayname("some user display name");   commenttype.setupdatedby(updatedby);  commenttype.setcomment("some comment");   ...set rest of comment fields necessary...  

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -