//-------------------------------------------------------------------------------------
public boolean accept(WorkflowSession session, WorkflowWork workItem)
throws WorkflowException
{
WorkflowParticipant participant = session.getParticipant();
WorkflowWorkValidator workValidator =
spiCaseDatabase.getWorkflowWorkValidator();
if (workValidator != null)
{
workValidator.checkAccept(participant, workItem);
}
return spiCaseDatabase.getWorkflowDispatcher().accept(
workItem.getWorkflowCase().getWorkflowProcess(),
participant,
workItem);