-
1. Re: JBPM LOG
m_ok Nov 21, 2005 9:29 PM (in response to mdonato)Hmmm, I've worked with logs alot and didn't have this problem. I'm using jbpm 3.0.1 with mssql and jboss. I'm using my own code but it's largely based on what's been done in the webapp.
Are you using the default webapp to test your process?
Which version of jbpm are you using?
Do the unit tests work?
If you are using Eclipse, you can always import the jbpm project and put a breakpoint in the ProcessInstance constructor to see if the log object is created, added, etc.
With so many influencing factors, who knows what's going wrong? If everything else is saved correctly in the tables, I don't see why logs wouldn't be saved aswell.
Read the logging section of the doc and poke around where things might go wrong.
There's probably a really simple explanation ; ).
Good Luck! -
2. Re: JBPM LOG
icyjamie Nov 22, 2005 1:31 AM (in response to mdonato)You have to explicitly save the processinstance (I think with a method in the GraphSession). This will persist the logs as well. I found it a bit strange, though.
-
3. Re: JBPM LOG
m_ok Nov 22, 2005 11:01 AM (in response to mdonato)I dunno, it seems logical not to save the logs for changes if those changes aren't saved either.
I mean, you save the process instance to save changes related to it. If you don't save the changes, then why save logs of those changes? -
4. Re: JBPM LOG
mdonato Nov 22, 2005 12:09 PM (in response to mdonato)"m_ok" wrote:
Hmmm, I've worked with logs alot and didn't have this problem. I'm using jbpm 3.0.1 with mssql and jboss. I'm using my own code but it's largely based on what's been done in the webapp.
Are you using the default webapp to test your process?
Which version of jbpm are you using?
Do the unit tests work?
If you are using Eclipse, you can always import the jbpm project and put a breakpoint in the ProcessInstance constructor to see if the log object is created, added, etc.
With so many influencing factors, who knows what's going wrong? If everything else is saved correctly in the tables, I don't see why logs wouldn't be saved aswell.
Read the logging section of the doc and poke around where things might go wrong.
There's probably a really simple explanation ; ).
Good Luck!
Hi again!
Environment:
Windows 2000 Professional (make's no sense) :)
Websphere Studio Application Developer (based on eclipse 2)
Jbpm 3.0.1 (as util lib)
J2EE Stateless Session Bean (as wrapper between both, my app & jbpm)
A singleton class to comunicate with jbpm as it is.
Code of singleton class to deploy a process:public void deployProcessDefinition(ProcessVo processVo) throws IntegrationException { pushMessage("[classe=MainWorkflow.java, method=deployProcessDefinition(zipInputStream)]"); try { logger.debug("iniciando metodo: MainWorkflow.java::deployProcessDefinition(zipInputStream)"); ProcessDefinition pd = ProcessDefinition.parseParZipInputStream( new ZipInputStream( new ByteArrayInputStream( processVo.getProcessFile() ) ) ); ProcessArchiveDeployer.deployProcessDefinition( pd , jbpmSessionFactory ); processVo.setProcessId( new Long( pd.getId() ) ); } catch(Exception e) { logger.fatal(e.getMessage(), e); throw new IntegrationException(e); } finally { logger.debug("finalizando metodo: MainWorkflow.java::deployProcessDefinition(zipInputStream)"); popMessage(); }
Question:
Will it log inside the table ?
If not, how i do that?
if yes, what else i need to make it work?
Thanks for your replies -
5. Re: JBPM LOG
mdonato Dec 12, 2005 10:15 AM (in response to mdonato)Hi all,
Now i'm using jbpm-3.0.2 and i don't know why the logs don't starts logging!
It should be automatic, or i have to explicity run some code ?
Please ! -
6. Re: JBPM LOG
mdonato Dec 13, 2005 9:54 AM (in response to mdonato)Someone knows what could i do to solve this ?