Tuesday, April 26, 2016

using array in Maximo Automation script


from psdi.util.logging import MXLogger
from psdi.util.logging import MXLoggerFactory
from psdi.mbo import MboConstants
from jarray import array

logger = MXLoggerFactory.getLogger("maximo.script");
logger.debug("==================== ATT_WO_WOPRIORITY." + launchPoint + ": START =====================")

# declaring as a set of double values
arrSubDiv = array([1,2,3,4,5,6],'d')

woPriority = mbo.getDouble("WOPRIORITY")

for i in arrSubDiv:
 if (i==woPriority):
   mbo.setFieldFlag("JUSTIFYPRIORITY",MboConstants.REQUIRED, True)
else:
   mbo.setFieldFlag("JUSTIFYPRIORITY",MboConstants.REQUIRED, False)


logger.debug("==================== ATT_WO_WOPRIORITY." + launchPoint + ": END =====================")





----------------------------------------------------------------------------
 All the messagesbelow are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.

2 comments:

Anonymous said...

I really appreciate your support on this.
Look forward to hearing from you soon.
I’m happy to answer your questions, if you have any.


คาสิโน

คาสิโน

เล่นบาคาร่า

Anonymous said...

Many thanks for your kind invitation. I’ll join you.
Would you like to play cards?
Come to the party with me, please.
See you soon...

คาสิโน

เครดิตฟรี

เครดิตฟรี

คาสิโนออนไลน์

Post a Comment