I solved this by adding my own ProcessLog subclass:

  | package com.olf.bpm.identity;
  | 
  | import org.jbpm.logging.log.*;
  | 
  | public class IdentityLog extends CompositeLog {
  | 
  |     private static final long serialVersionUID = 1L;
  |   
  |     protected String actorId = null;
  | 
  |     public IdentityLog() {
  |     }
  | 
  |     public IdentityLog(String invoker) {
  |             this.actorId = invoker;
  |     }
  | 
  |     public String getActorId() {
  |             return actorId;
  |     }
  |   
  |     public String toString() {
  |             return "invoker["+ actorId +"]";
  |     }
  | }
  | 

And the corresponding hibernate config file:

  | <?xml version="1.0"?>
  | 
  | <!DOCTYPE hibernate-mapping PUBLIC
  |     "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
  |     "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
  | 
  | <hibernate-mapping default-access="field">
  | 
  |   <subclass name="com.olf.bpm.identity.IdentityLog" 
  |             extends="org.jbpm.logging.log.ProcessLog"
  |             discriminator-value="9">
  | 
  |     <property name="actorId"
  |               column="TASKACTORID_"/>
  |               
  |   </subclass>
  | 
  | </hibernate-mapping>
  | 


Then, before initiating any BPM action, I call:

  | idLog = new IdentityLog(invoker);
  | token.startCompositeLog(idLog);
  | 








View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957784#3957784

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957784
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to