What is BPM? A business process is a process that describes the order in which a series of steps need to be executed, using a flow chart. Business Process Management
Example: Notification [ [ " name " : "Notification", " parameters " : [ "Message" : new StringDataType(), "From" : new StringDataType(), "To" : new StringDataType(), "Priority" : new StringDataType(), ], " displayName " : "Notification", " icon " : "icons/notification.gif" ] ]
Example: Notification class NotificationHandler implements WorkItemHandler { public void executeWorkItem(WorkItem wI, WorkItemManager manager) { String from = (String) wI. getParameter ("From"); String to = (String) wI. getParameter ("To"); String m = (String) wI. getParameter ("Message"); // send email EmailService service = ...; service.sendEmail(from, to, "Notification", m); manager. completeWorkItem (wI.getId(), null); } }
Human Task Service public void start( long taskId, String userId, .. ) public void stop( long taskId, String userId, .. ) public void release( long taskId, String userId, .. ) public void suspend( long taskId, String userId, .. ) public void resume( long taskId, String userId, .. ) public void skip( long taskId, String userId, .. ) public void delegate( long taskId, String userId, String targetUserId, .. ) public void complete( long taskId, String userId, ContentData outputData, .. )
User Transactions Environment env = KnowledgeBaseFactory.newEnvironment(); env.set( EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager() ); UserTransaction ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); ut.begin(); // do stuff here, e.g. ksession.startProcess(..) ut.commit();