title: Maximo automation script - commtemplate with parameters
body: <p>In Maximo 7.5 ,I'm trying to call a communication template via automation script.
  My communication template takes 3 parameters, how can I pass it in automation script.</p>
  
  <pre><code>from psdi.server import MXServer
  from psdi.mbo import SqlFormat
  from java.text import MessageFormat
  """ get three parameters that are required for mail and get value of  primaryEmail"""
  whereclause="templateid='WMSPWUSER'";
  csr =mbo.getMboSet("$commtemp","COMMTEMPLATE",whereclause);
  csr.setQbeExactMatch("true");
  if csr.count() &gt; 0 :     
     print("Inside commtemplate");
     ctr = csr.getMbo(0);
     sqf =SqlFormat(ctr.getString("message").replace("'", "''"));
     sqf.setIgnoreUnresolved(1);
     message = sqf.resolveContent();
     args = [ param1, param2,param3 ];
     MessageFormat fmt = new MessageFormat(message);
     message = fmt.format(args);
     MXServer.sendEMail( primaryEmail , ctr.getString("sendfrom"),    ctr.getString("subject"), message);
  </code></pre>
  
  <p>works via java customization.</p>
  
  <p>Line message=fmt.format(args) is throwing error in python automation script.</p>
  
  <p>Error Message: BMXAA7837E - An error occured that prevented the  script for the launch point from running.
  java.lang.ClassCastException: java.lang.ClassCastException: org.python.core.PyList cannot be cast to [Ljava.lang.Object; in  at line number 19 </p>
  
  <pre><code>message = sqf.resolveContent();
  args = [ pwd, login,url ];
  fmt = MessageFormat(message);
  message = fmt.format(args); """ line 19"""
  </code></pre>