process.addNode( actionNode );
new ConnectionImpl( start,
Node.CONNECTION_DEFAULT_TYPE,
actionNode,
Node.CONNECTION_DEFAULT_TYPE );
WorkItemNode workItemNode = new WorkItemNode();
workItemNode.setId( 3 );
workItemNode.setName( "WorkItem1" );
Work work = new WorkImpl();
work.setName( "MyWork" );
workItemNode.setWork( work );
process.addNode( workItemNode );
new ConnectionImpl( actionNode,
Node.CONNECTION_DEFAULT_TYPE,
workItemNode,
Node.CONNECTION_DEFAULT_TYPE );
WorkItemNode workItemNode2 = new WorkItemNode();
workItemNode2.setId( 4 );
workItemNode2.setName( "WorkItem2" );
work = new WorkImpl();
work.setName( "MyWork" );
workItemNode2.setWork( work );
process.addNode( workItemNode2 );
new ConnectionImpl( workItemNode,
Node.CONNECTION_DEFAULT_TYPE,
workItemNode2,
Node.CONNECTION_DEFAULT_TYPE );
WorkItemNode workItemNode3 = new WorkItemNode();
workItemNode3.setId( 5 );
workItemNode3.setName( "WorkItem3" );
work = new WorkImpl();
work.setName( "MyWork" );
workItemNode3.setWork( work );
process.addNode( workItemNode3 );
new ConnectionImpl( workItemNode2,
Node.CONNECTION_DEFAULT_TYPE,
workItemNode3,
Node.CONNECTION_DEFAULT_TYPE );