# Class R.O.OpenFlowEngine(Folder):

Part of Reportek.OpenFlowEngine View In Hierarchy

A openflow contains all the processes of the openflow

Line # | Kind | Name | Docs
--- | --- | --- | ---
78 | Method | __init__ | constructor
89 | Method | all_meta_types | What can you put inside me? Checks if the legal products are
132 | Method | editActivitiesPushableOnRole | Edit the link between a role and activities of a process
166 | Method | getActivitiesPushableOnRole | Undocumented
171 | Method | deleteProcessWithActivitiesPushableOnRole | Delete the link between a role and activities of a process
181 | Method | deleteRoleWithActivitiesPushable | Delete a role
188 | Method | addRoleWithActivitiesPushable | Add a role
194 | Method | editActivitiesPullableOnRole | Edit the link between a role and activities of a process
228 | Method | getActivitiesPullableOnRole | Undocumented
233 | Method | deleteProcessWithActivitiesPullableOnRole | Delete the link between a role and activities of a process
243 | Method | deleteRoleWithActivitiesPullable | Delete a role
250 | Method | addRoleWithActivitiesPullable | Add a role
256 | Method | usersAssignableTo | List all user name assignable to activity in the process
277 | Method | canPullActivity | Undocumented
288 | Method | deleteProcess | removes specified process
293 | Method | getPushRoles | Undocumented
303 | Method | getPullRoles | Undocumented
313 | Method | getWorkitems | Finds all workitems from a process in certain statuses
327 | Method | addApplication | adds an application declaration
336 | Method | deleteApplication | removes an application
345 | Method | editApplication | edits an application declaration
355 | Method | listApplications | List application declaration;
366 | Method | exportToXPDL | Export Workflow structure to an XPDL file
373 | Method | importFromXPDL | Import Workflow structure from an XPDL file
482 | Method | exportToXml | Export Workflow structure to an XML file
525 | Method | _importFromXml | Import Workflow structure from an XML
625 | Method | importFromXml | Imports the contained objects from XML
636 | Method | getProcessMappings | returns a dictionary with the valid process mappings
653 | Method | setProcessMappings | sets a process mappings according to the REQUEST
672 | Method | findProcess | Finds the process suited for an envelope and retrieves its absolute_url
704 | Method | getDataflows | dataflow_table is acquired from root of ZODB and is
710 | Method | getCountries | countries table is aquired from root of ZODB

def __init__(self, id, title=''):
constructor

def all_meta_types(self, interfaces=None):
What can you put inside me? Checks if the legal products are actually installed in Zope

def editActivitiesPushableOnRole(self, role, process, activities=None, REQUEST=None):
Edit the link between a role and activities of a process

def getActivitiesPushableOnRole(self):
Undocumented
def deleteProcessWithActivitiesPushableOnRole(self, role, process):
Delete the link between a role and activities of a process

def deleteRoleWithActivitiesPushable(self, role):
Delete a role

def addRoleWithActivitiesPushable(self, role, process):
Add a role

def editActivitiesPullableOnRole(self, role, process, activities=None, REQUEST=None):
Edit the link between a role and activities of a process

def getActivitiesPullableOnRole(self):
Undocumented
def deleteProcessWithActivitiesPullableOnRole(self, role, process):
Delete the link between a role and activities of a process

def deleteRoleWithActivitiesPullable(self, role):
Delete a role

def addRoleWithActivitiesPullable(self, role, process):
Add a role

def usersAssignableTo(self, process_id, activity_id):
List all user name assignable to activity in the process

def canPullActivity(self, p_activity_id, p_roles, p_process_id):
Undocumented
def deleteProcess(self, proc_ids=None, REQUEST=None):
removes specified process

def getPushRoles(self, process_id, activity_id):
Undocumented
def getPullRoles(self, process_id, activity_id):
Undocumented
def getWorkitems(self, process_path, statuses_list):
Finds all workitems from a process in certain statuses and sorts them by last modification time

def addApplication(self, name, link, REQUEST=None):
adds an application declaration

def deleteApplication(self, app_ids=None, REQUEST=None):
removes an application

def editApplication(self, name, link, REQUEST=None):
edits an application declaration

def listApplications(self):
List application declaration; returns a list of dictionaries with keys: name, link

def exportToXPDL(self):
Export Workflow structure to an XPDL file

def importFromXPDL(self, file='', REQUEST=None):
Import Workflow structure from an XPDL file

def exportToXml(self):
Export Workflow structure to an XML file

def _importFromXml(self, p_xml_string):
Import Workflow structure from an XML

def importFromXml(self, file='', REQUEST=None):
Imports the contained objects from XML

def getProcessMappings(self):
returns a dictionary with the valid process mappings remembers mappings for erased processes - you never know when it's useful A newly added process is not valid for any dataflow or country

def setProcessMappings(self, p_process, p_dataflows_all, p_countries_all, p_dataflows=None, p_countries=None, REQUEST=None):
sets a process mappings according to the REQUEST

def findProcess(self, dataflow_uris, country_code):
Finds the process suited for an envelope and retrieves its absolute_url If there's no process or more than one, an error code and the description are returned Look by the same dataflow uris and country code

def getDataflows(self):
dataflow_table is acquired from root of ZODB and is currently a python script

def getCountries(self):
countries table is aquired from root of ZODB