RuleModel m = new RuleModel();
m.name = "WorkItem";
FactPattern fp1 = new FactPattern( "Person" );
fp1.setBoundName( "$p" );
SingleFieldConstraint con1 = new SingleFieldConstraint();
con1.setFieldType( DataType.TYPE_STRING );
con1.setFieldName( "name" );
con1.setOperator( "==" );
con1.setValue( "Michael" );
con1.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
fp1.addConstraint( con1 );
m.addLhsItem( fp1 );
ActionExecuteWorkItem awi = new ActionExecuteWorkItem();
PortableWorkDefinition pwd = new PortableWorkDefinition();