assertEquals( Status.Completed , task1.getTaskData().getStatus() );
}
@SuppressWarnings("unchecked")
public void testLifeCycleMultipleTasks() throws Exception {
Map<String, Object> vars = new HashedMap();
vars.put( "users", users );
vars.put( "groups", groups );
vars.put( "now", new Date() );
// One potential owner, should go straight to state Reserved
String str = "(with (new Task()) { priority = 55, taskData = (with( new TaskData()) { workItemId = 1 } ), ";
str += "peopleAssignments = (with ( new PeopleAssignments() ) { potentialOwners = [users['bobba']], }),";
str += "descriptions = [ new I18NText( 'en-UK', 'This is my description')], ";