// @formatter:off
f.newPath("path1")
.newStep( 0 )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.newStep( 5, TimeUnit.MINUTES )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.newStep( 10, TimeUnit.MINUTES )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.newStep( 15, TimeUnit.MINUTES )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.newStep( 20, TimeUnit.MINUTES )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.newStep( 25, TimeUnit.MINUTES )
.newKieSession( releaseId, "TestKbase.KSession1" )
.end(World.ROOT, StatefulKnowledgeSession.class.getName())
.addCommand(new SimulateProcessPathCommand("UserTask", context, paths.get(0)))
.runSimulation();
// @formatter:on
System.out.println("Resource utilization for UserTask Hello: " + context.getStaffPoolManager().getActivityPool("Hello").getResourceUtilization());
}