protected void processMessage ( String message ) throws ActivityException { try { String rcvdMsgDocVar = getAttributeValueSmart ( RECEIVED_MESSAGE_DOC_VAR ) ; if ( rcvdMsgDocVar != null && ! rcvdMsgDocVar . isEmpty ( ) ) { Process processVO = getProcessDefinition ( ) ; Variable variableVO = processVO . getVariable ( rcvdMsgDocVar ) ; if ( variableVO == null ) throw new ActivityException ( "Received Message Variable '" + rcvdMsgDocVar + "' is not defined or is not Document Type for process " + processVO . getFullLabel ( ) ) ; if ( message != null ) { this . setParameterValueAsDocument ( rcvdMsgDocVar , variableVO . getType ( ) , message ) ; } } return ; } catch ( Exception ex ) { logger . severeException ( ex . getMessage ( ) , ex ) ; return ; } }
You should override this method to process event messages .