// execute
WfAssignmentIterator ai = sc.get_iterator_assignment();
ai.set_query_expression(aieb.toIteratorExpression(sessionHandle, filter));
WfAssignment[] wItems = ai.get_next_n_sequence(0);
for (int i = 0; i < wItems.length; ++i) {
WfAssignment wfa = wItems[i];
boolean acceptedStatus = wfa.get_accepted_status();
WorkflowAssignment ass = new WorkflowAssignment();
ass.setAccepted(acceptedStatus);
WfActivity activity = wfa.activity();
WfResource assignee = wfa.assignee();
WfProcess process = activity.container();
WfProcessMgr manager = process.manager();
ass.setActivityId(activity.key());
ass.setActivityName(activity.name());
ass.setAssigneeId(assignee.resource_key());