/** * */ package net.conselldemallorca.helium.jbpm3.command; import org.jbpm.JbpmContext; import org.jbpm.command.AbstractBaseCommand; /** * Command per a trobar els logs associats a una instància de procés * * @author Limit Tecnologies <limit@limit.es> */ public class GetProcessLogByIdCommand extends AbstractBaseCommand { private static final long serialVersionUID = -1908847549444051495L; private long id; public GetProcessLogByIdCommand( long id) { super(); this.id = id; } public Object execute(JbpmContext jbpmContext) throws Exception { return jbpmContext.getLoggingSession().getProcessLog(id); } public long getId() { return id; } public void setId(long id) { this.id = id; } @Override public String getAdditionalToStringInformation() { return "id=" + id ; } }