Example #1
0
## Script (Python) "guard_e1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'sicurezza'
Example #2
0
## Script (Python) "guard_b1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'ubicazione'
Example #3
0
## Script (Python) "guard_a1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
if not doc.isDocument():
    return True

idoc = IolDocument(doc)
return idoc.wfState() == 'richiedenti'
Example #4
0
## Script (Python) "guard_f1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'oneri'
Example #5
0
## Script (Python) "guard_d1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'altri_soggetti' and 'cila' in idoc.getIolApp()
Example #6
0
## Script (Python) "guard_c1"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument 
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'dati'
Example #7
0
## Script (Python) "guard_d2"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=state_change,workflow
##title=
##
from iol.gisweb.utils.IolDocument import IolDocument
doc = state_change.object
idoc = IolDocument(doc)
return idoc.wfState() == 'altri_soggetti' and idoc.getIolApp() == 'scia'