rafactoring on flowbasedprocess and flowbaedprocessedge