use of com.salaboy.jbpm5.dev.guide.tablemodel.TaskParametersTableModel in project jBPM5-Developer-Guide by Salaboy.
the class TasksListUI method initTaskComponents.
// End of variables declaration//GEN-END:variables
private void initTaskComponents() {
// Create an EntityManagerFactory based on the PU configuration
emf = Persistence.createEntityManagerFactory("org.jbpm.task");
// The Task Service will use the EMF to store our Task Status
taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
// We can uset the Task Service to get an instance of the Task Session which
// allows us to introduce to our database the users and groups information before
// running our tests
taskSession = taskService.createSession();
// create new Local Task Service
localTaskService = new LocalTaskService(taskService);
// regisister task event listener to Local Task Service
localTaskService.addEventListener(taskEventListener);
// Adds 1 Administrator, 2 users and 1 Group
addUsersAndGroups(taskSession);
// We need to set up an user to represent the user that is making the requests
MockUserInfo userInfo = new MockUserInfo();
taskService.setUserinfo(userInfo);
this.taskParametersTableModel = new TaskParametersTableModel();
this.tblParameters.setColumnModel(new TaskParametersTableModel.ColumnModel());
this.tblParameters.setModel(taskParametersTableModel);
}
Aggregations