예제 #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'
예제 #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'
예제 #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'
예제 #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'
예제 #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()
예제 #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'
예제 #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'