Package org.openengsb.core.workflow.api

Examples of org.openengsb.core.workflow.api.TaskboxException


    public Task getTaskForId(String id) throws TaskboxException {
        Task example = Task.createTaskWithAllValuesSetToNull();
        example.setTaskId(id);
        List<Task> list = getTasksForExample(example);
        if (list.size() != 1) {
            throw new TaskboxException((list.size() == 0 ? "No" : "More than one") + " task with ID " + id + " found!");
        }
        return list.get(0);
    }
View Full Code Here


        try {
            Constructor<? extends Panel> panelConstructor = panelClass.getConstructor(String.class, Task.class);
            return panelConstructor.newInstance(wicketPanelId, task);
        } catch (Exception e) {
            throw new TaskboxException(e);
        }
    }
View Full Code Here

                persistence.delete(new PanelRegistryEntry(taskType));
            }
            persistence.create(new PanelRegistryEntry(taskType, panelClass));
            LOGGER.info("Successfully registered {} for task type {}", panelClass.getName(), taskType);
        } catch (PersistenceException e) {
            throw new TaskboxException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.workflow.api.TaskboxException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.