Making Workflow Memo field required when canceling or rejecting

Another of the features usually requested by clients is to make the Workflow Memo field required when you cancel or reject a workflow assignment. This post describes the steps to implement this feature.

The first step is to override the psdi.workflow.WFInstance MBO. Create the 4 classes required for a customized MBO.

The only problem you’ll have is that the getThisProcessName(String) and getActionName(int,String) are private which means you cannot access them, you’ll have to copy them to your class. If only they were protected… The MemoEmpty message is a customized message thay you have to add to MAXMESSAGES.

MBO classes come in groups of 4 being 2 interfaces and 2 classes. The 2 interfaces are remote interfaces for RMI invocation and the 2 classes are for the Mbo and the MboSet. If you create a new persistent Mbo you should create these 2 interfaces and 2 classes with the following structure.