changed to inheritance check
Merge branch 'CustomWorkflowDefinition' of git://github.com/dnadesign/advancedworkflow

* 'CustomWorkflowDefinition' of git://github.com/dnadesign/advancedworkflow:
  changed to inheritance check