public final SimpleObjectProperty<Date> finishTime;
public final SimpleObjectProperty<Date> lastErrorTime;
public final SimpleStringProperty errorInfos;
public WorkflowInstanceResultModel(WorkflowInstanceInfo workflowInstanceInfo) {
this.id = new SimpleStringProperty(workflowInstanceInfo.getId());
this.state = new SimpleObjectProperty<WorkflowInstanceState>(workflowInstanceInfo.getState());
this.priority = new SimpleIntegerProperty(workflowInstanceInfo.getPriority());
this.processorPoolId = new SimpleStringProperty(workflowInstanceInfo.getProcessorPoolId());
this.timeout = new SimpleObjectProperty<Date>(workflowInstanceInfo.getTimeout());
this.lastActivityTimestamp=new SimpleObjectProperty<Date>(workflowInstanceInfo.getLastActivityTimestamp());
this.overallLifetimeInMs=new SimpleLongProperty(workflowInstanceInfo.getOverallLifetimeInMs());
this.startTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getStartTime());
this.finishTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getFinishTime());
this.lastErrorTime=new SimpleObjectProperty<Date>(workflowInstanceInfo.getLastErrorTime());
this.errorInfos=new SimpleStringProperty(workflowInstanceInfo.getErrorInfos());
}