1 package org.jbpm.logging.log; 2 3 import java.io.*; 4 import java.util.*; 5 import org.jbpm.graph.exe.*; 6 7 public abstract class ProcessLog implements Serializable { 8 9 private static final long serialVersionUID = 1L; 10 11 private long id = 0; 12 protected int index = -1; 13 protected Date date = null; 14 protected Token token = null; 15 protected CompositeLog parent = null; 16 17 public ProcessLog() { 18 } 19 20 24 public abstract String toString(); 25 26 public String getActorId() { 27 String actorId = null; 28 if (parent!=null) { 29 actorId = parent.getActorId(); 31 } 32 return actorId; 33 } 34 35 public void setToken(Token token) { 36 this.token = token; 37 this.index = token.nextLogIndex(); 38 } 39 40 public void setParent(CompositeLog parent) { 41 this.parent = parent; 42 } 43 public long getId() { 44 return id; 45 } 46 public Date getDate() { 47 return date; 48 } 49 public void setDate(Date date) { 50 this.date = date; 51 } 52 public CompositeLog getParent() { 53 return parent; 54 } 55 public Token getToken() { 56 return token; 57 } 58 public void setIndex(int index) { 59 this.index = index; 60 } 61 public int getIndex() { 62 return index; 63 } 64 } 65 | Popular Tags |