Topic
  • 6 replies
  • Latest Post - ‏2013-01-07T05:53:20Z by SystemAdmin
SystemAdmin
SystemAdmin
255 Posts

Pinned topic how to use the function getTICKETID() in auto ticketing policy

‏2012-12-28T06:37:04Z |
Hi all,

please let me know how to use the function getTICKETID();i am getting the below in log when i used it in improper way. i need the correct syntax
CreateMXOSINCIDENTResponseDocumentImpl.getTICKETID() , i need TICKETID from the policy

Thanks in advance
Updated on 2013-01-07T05:53:20Z at 2013-01-07T05:53:20Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2012-12-28T07:08:05Z  
    i am using the below policy and i want to parse the responce but it is giving error please give me some solution for this

    WSSetDefaultPKGName('EXTSYSTDI_MXIncidentCreate');

    //Specify parameters
    CreateMXOSINCIDENTDocument=WSNewObject("com.ibm.www.maximo.CreateMXOSINCIDENTDocument");
    _CreateMXOSINCIDENT=WSNewSubObject(CreateMXOSINCIDENTDocument,"CreateMXOSINCIDENT");

    //CreateMXOSINCIDENTResponseDocument=WSNewObject("com.ibm.www.maximo.impl.CreateMXOSINCIDENTResponseDocumentImpl.getTICKETID()")
    //_CreateMXOSINCIDENTResponce=WSNewSubObject(CreateMXOSINCIDENTDocument,"CreateMXOSINCIDENTResponce");

    _MaximoVersion = '7.2.1';
    _CreateMXOSINCIDENT = _MaximoVersion;
    _MessageID = '123456';
    _CreateMXOSINCIDENT = _MessageID;
    _TransLanguage = 'EN';
    _CreateMXOSINCIDENT = _TransLanguage;
    _BaseLanguage = 'EN';
    _CreateMXOSINCIDENT = _BaseLanguage;

    //Handle special calendar type...
    date = WSNewObject("java.util.GregorianCalendar");
    _CreationDateTime = date;
    _CreateMXOSINCIDENT = _CreationDateTime;

    _MXOSINCIDENTSet = WSNewSubObject(_CreateMXOSINCIDENT,"MXOSINCIDENTSet");

    _INCIDENT_0_ = WSNewSubObject(_MXOSINCIDENTSet,"INCIDENT");
    _INCIDENT_0_ = 'EN';
    _INCIDENT_0_ = '?';
    _INCIDENT_0_ = '?';
    _INCIDENT_0_ = WSNewEnum('com.ibm.www.maximo.ProcessingActionType','AddChange');

    _DESCRIPTION = WSNewSubObject(_INCIDENT_0_,"DESCRIPTION");
    _DESCRIPTION = 'from event management';
    _DESCRIPTION = true;

    _DESCRIPTIONLONGDESCRIPTION = WSNewSubObject(_INCIDENT_0_,"DESCRIPTIONLONGDESCRIPTION");
    _DESCRIPTIONLONGDESCRIPTION = @summery;
    _DESCRIPTIONLONGDESCRIPTION = true;

    _IMPACT = WSNewSubObject(_INCIDENT_0_,"IMPACT");

    _OWNER = WSNewSubObject(_INCIDENT_0_,"OWNER");

    _REPORTEDBY = WSNewSubObject(_INCIDENT_0_,"REPORTEDBY");
    _REPORTEDBY = 'maxadmin';
    _REPORTEDBY = true;
    WSParams = {CreateMXOSINCIDENTDocument};
    //Specify web service name, end point and method
    WSService = 'EXTSYSTDI_MXIncidentCreate';
    WSEndPoint = 'http://192.168.18.158:9080/meaweb/services/EXTSYSTDI_MXIncidentCreate';
    WSMethod = 'CreateMXOSINCIDENT';

    //Enable web service security
    callProps = NewObject();
    callProps.Username="maxadmin";
    callProps.Password="abcd@i3-soft";

    log("About to invoke Web Service call CreateMXOSINCIDENT ......");

    WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, callProps);
    log("Web Service call CreateMXOSINCIDENT return result: " +WSInvokeDLResult);
    log(WSInvokeDLResult.TICKETID);

    TicketID = WSInvokeDLResult.CreateMXOSINCIDENTResponce.TICKETID;
    log(TicketID);
    ERROR:December 28, 2012 12:32:43 PM ISTPolicyLoggervamsi_testpool-1-thread-88Caused by: com.micromuse.common.parser.PolicyException: Unhandled Exception: com.ibm.www.maximo.impl.CreateMXOSINCIDENTResponseDocumentImpl.getTICKETID() in policy: vamsi_test at line: 72. com.micromuse.common.parser.internal.core.DefaultExceptionHandler.handle(DefaultExceptionHandler.java:102) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:739) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:339) com.micromuse.common.parser.internal.core.ASTId.jjtAccept(ASTId.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:1162) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:321) com.micromuse.common.parser.internal.core.ASTVariable.jjtAccept(ASTVariable.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:902) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:303) com.micromuse.response.common.parser.IPLImpactNoActionInterpreterVisitor.visit(IPLImpactNoActionInterpreterVisitor.java:171) com.micromuse.common.parser.internal.core.ASTFunctionCall.jjtAccept(ASTFunctionCall.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:150) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:81) com.micromuse.response.common.parser.IPLImpactActionInterpreterVisitor.visit(IPLImpactActionInterpreterVisitor.java:66) com.micromuse.common.parser.internal.core.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:17) com.micromuse.response.common.parser.IPLPolicy.execute(IPLPolicy.java:54) com.micromuse.response.common.parser.PolicyExecutor.executePolicy(PolicyExecutor.java:148) com.micromuse.response.common.parser.PolicyExecutor.executePolicy(PolicyExecutor.java:236) com.micromuse.response.server.MessageProcessor.processMessage(MessageProcessor.java:313) com.micromuse.response.server.MessageProcessor.processMessage(MessageProcessor.java:253) com.micromuse.response.server.SynchronousMessageProcessor$1.call(SynchronousMessageProcessor.java:152) com.micromuse.response.server.SynchronousMessageProcessor$1.call(SynchronousMessageProcessor.java:150) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) java.util.concurrent.FutureTask.run(FutureTask.java:149) com.micromuse.common.util.concurrent.TrackingExecutor$1.run(TrackingExecutor.java:105) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) java.lang.Thread.run(Thread.java:736)
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2012-12-28T16:23:46Z  
    i am using the below policy and i want to parse the responce but it is giving error please give me some solution for this

    WSSetDefaultPKGName('EXTSYSTDI_MXIncidentCreate');

    //Specify parameters
    CreateMXOSINCIDENTDocument=WSNewObject("com.ibm.www.maximo.CreateMXOSINCIDENTDocument");
    _CreateMXOSINCIDENT=WSNewSubObject(CreateMXOSINCIDENTDocument,"CreateMXOSINCIDENT");

    //CreateMXOSINCIDENTResponseDocument=WSNewObject("com.ibm.www.maximo.impl.CreateMXOSINCIDENTResponseDocumentImpl.getTICKETID()")
    //_CreateMXOSINCIDENTResponce=WSNewSubObject(CreateMXOSINCIDENTDocument,"CreateMXOSINCIDENTResponce");

    _MaximoVersion = '7.2.1';
    _CreateMXOSINCIDENT = _MaximoVersion;
    _MessageID = '123456';
    _CreateMXOSINCIDENT = _MessageID;
    _TransLanguage = 'EN';
    _CreateMXOSINCIDENT = _TransLanguage;
    _BaseLanguage = 'EN';
    _CreateMXOSINCIDENT = _BaseLanguage;

    //Handle special calendar type...
    date = WSNewObject("java.util.GregorianCalendar");
    _CreationDateTime = date;
    _CreateMXOSINCIDENT = _CreationDateTime;

    _MXOSINCIDENTSet = WSNewSubObject(_CreateMXOSINCIDENT,"MXOSINCIDENTSet");

    _INCIDENT_0_ = WSNewSubObject(_MXOSINCIDENTSet,"INCIDENT");
    _INCIDENT_0_ = 'EN';
    _INCIDENT_0_ = '?';
    _INCIDENT_0_ = '?';
    _INCIDENT_0_ = WSNewEnum('com.ibm.www.maximo.ProcessingActionType','AddChange');

    _DESCRIPTION = WSNewSubObject(_INCIDENT_0_,"DESCRIPTION");
    _DESCRIPTION = 'from event management';
    _DESCRIPTION = true;

    _DESCRIPTIONLONGDESCRIPTION = WSNewSubObject(_INCIDENT_0_,"DESCRIPTIONLONGDESCRIPTION");
    _DESCRIPTIONLONGDESCRIPTION = @summery;
    _DESCRIPTIONLONGDESCRIPTION = true;

    _IMPACT = WSNewSubObject(_INCIDENT_0_,"IMPACT");

    _OWNER = WSNewSubObject(_INCIDENT_0_,"OWNER");

    _REPORTEDBY = WSNewSubObject(_INCIDENT_0_,"REPORTEDBY");
    _REPORTEDBY = 'maxadmin';
    _REPORTEDBY = true;
    WSParams = {CreateMXOSINCIDENTDocument};
    //Specify web service name, end point and method
    WSService = 'EXTSYSTDI_MXIncidentCreate';
    WSEndPoint = 'http://192.168.18.158:9080/meaweb/services/EXTSYSTDI_MXIncidentCreate';
    WSMethod = 'CreateMXOSINCIDENT';

    //Enable web service security
    callProps = NewObject();
    callProps.Username="maxadmin";
    callProps.Password="abcd@i3-soft";

    log("About to invoke Web Service call CreateMXOSINCIDENT ......");

    WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, callProps);
    log("Web Service call CreateMXOSINCIDENT return result: " +WSInvokeDLResult);
    log(WSInvokeDLResult.TICKETID);

    TicketID = WSInvokeDLResult.CreateMXOSINCIDENTResponce.TICKETID;
    log(TicketID);
    ERROR:December 28, 2012 12:32:43 PM ISTPolicyLoggervamsi_testpool-1-thread-88Caused by: com.micromuse.common.parser.PolicyException: Unhandled Exception: com.ibm.www.maximo.impl.CreateMXOSINCIDENTResponseDocumentImpl.getTICKETID() in policy: vamsi_test at line: 72. com.micromuse.common.parser.internal.core.DefaultExceptionHandler.handle(DefaultExceptionHandler.java:102) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:739) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:339) com.micromuse.common.parser.internal.core.ASTId.jjtAccept(ASTId.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:1162) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:321) com.micromuse.common.parser.internal.core.ASTVariable.jjtAccept(ASTVariable.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:902) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:303) com.micromuse.response.common.parser.IPLImpactNoActionInterpreterVisitor.visit(IPLImpactNoActionInterpreterVisitor.java:171) com.micromuse.common.parser.internal.core.ASTFunctionCall.jjtAccept(ASTFunctionCall.java:17) com.micromuse.common.parser.internal.core.PolicyParserInterpreterVisitor.visit(PolicyParserInterpreterVisitor.java:150) com.micromuse.response.common.parser.AbstractPolicyParserInterpreterVisitor.visit(AbstractPolicyParserInterpreterVisitor.java:81) com.micromuse.response.common.parser.IPLImpactActionInterpreterVisitor.visit(IPLImpactActionInterpreterVisitor.java:66) com.micromuse.common.parser.internal.core.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:17) com.micromuse.response.common.parser.IPLPolicy.execute(IPLPolicy.java:54) com.micromuse.response.common.parser.PolicyExecutor.executePolicy(PolicyExecutor.java:148) com.micromuse.response.common.parser.PolicyExecutor.executePolicy(PolicyExecutor.java:236) com.micromuse.response.server.MessageProcessor.processMessage(MessageProcessor.java:313) com.micromuse.response.server.MessageProcessor.processMessage(MessageProcessor.java:253) com.micromuse.response.server.SynchronousMessageProcessor$1.call(SynchronousMessageProcessor.java:152) com.micromuse.response.server.SynchronousMessageProcessor$1.call(SynchronousMessageProcessor.java:150) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) java.util.concurrent.FutureTask.run(FutureTask.java:149) com.micromuse.common.util.concurrent.TrackingExecutor$1.run(TrackingExecutor.java:105) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919) java.lang.Thread.run(Thread.java:736)
    Hi,

    Do this in your code

    ....
    WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, callProps);
    log("Web Service call CreateMXOSINCIDENT return result: " +WSInvokeDLResult);
    log(WSInvokeDLResult.TICKETID);

    Comment the below 2 lines
    //TicketID = WSInvokeDLResult.CreateMXOSINCIDENTResponce.TICKETID;
    //log(TicketID);

    Can you please execute the code by commenting the last 2 lines and log the WSInvokeDLResult and paste the result here, so we can able to parse the Ticket ID using XML hierarchy parsing logic.

    Thanks
    Satya
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2012-12-31T09:53:29Z  
    Hi,

    Do this in your code

    ....
    WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, callProps);
    log("Web Service call CreateMXOSINCIDENT return result: " +WSInvokeDLResult);
    log(WSInvokeDLResult.TICKETID);

    Comment the below 2 lines
    //TicketID = WSInvokeDLResult.CreateMXOSINCIDENTResponce.TICKETID;
    //log(TicketID);

    Can you please execute the code by commenting the last 2 lines and log the WSInvokeDLResult and paste the result here, so we can able to parse the Ticket ID using XML hierarchy parsing logic.

    Thanks
    Satya
    Thanks for the responce ..but actually i added that code for log the ticket id alone .
    i replace that last two lines with below it is working now

    Ticket="TICKETID "Extract(Extract(WSInvokeDLResult,5,"<">")" is created";
    log(Ticket);
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2012-12-31T09:59:08Z  
    Hi,

    Do this in your code

    ....
    WSInvokeDLResult = WSInvokeDL(WSService, WSEndPoint, WSMethod, WSParams, callProps);
    log("Web Service call CreateMXOSINCIDENT return result: " +WSInvokeDLResult);
    log(WSInvokeDLResult.TICKETID);

    Comment the below 2 lines
    //TicketID = WSInvokeDLResult.CreateMXOSINCIDENTResponce.TICKETID;
    //log(TicketID);

    Can you please execute the code by commenting the last 2 lines and log the WSInvokeDLResult and paste the result here, so we can able to parse the Ticket ID using XML hierarchy parsing logic.

    Thanks
    Satya
    Hi satya ,
    I need some help to understanding EIC (event isolation and correlation) in netcool impact apart from EIC policies how can i use the EIC console ... there is diferent boxes for sql event rules etc. how can i define them on the console.What is EIC analyze..??

    Thanks in advance.
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2012-12-31T14:46:00Z  
    Hi satya ,
    I need some help to understanding EIC (event isolation and correlation) in netcool impact apart from EIC policies how can i use the EIC console ... there is diferent boxes for sql event rules etc. how can i define them on the console.What is EIC analyze..??

    Thanks in advance.
    Hi,

    EIC is based on resource relationship(s) that can be stored in the SCR ( Services Component Registry ). The relationships can be populated through TADDM, custom IDML books or DLA books generated by the IBM products. There is a Impact policy based api , to populate the relationships.

    Currently the analysis is invoked manually by launching from AEL.

    You can correlate events with just the relationships between the events.

    If you could be more specific on what you are trying to do I will be able to provide you with more information.

    Thanks and Regards
    Sudhakar. ( svelkant at us dot ibm dot com )
  • SystemAdmin
    SystemAdmin
    255 Posts

    Re: how to use the function getTICKETID() in auto ticketing policy

    ‏2013-01-07T05:53:20Z  
    Hi,

    EIC is based on resource relationship(s) that can be stored in the SCR ( Services Component Registry ). The relationships can be populated through TADDM, custom IDML books or DLA books generated by the IBM products. There is a Impact policy based api , to populate the relationships.

    Currently the analysis is invoked manually by launching from AEL.

    You can correlate events with just the relationships between the events.

    If you could be more specific on what you are trying to do I will be able to provide you with more information.

    Thanks and Regards
    Sudhakar. ( svelkant at us dot ibm dot com )
    THANKS FOR THE RESPONCE Sudhakar.

    I am New for the EIC module .Previously I am worked on Ticketing and Event Enrichment using Impact.

    I Need to know the procedure to achieve the Event correlation in Impact (With any Scenario for basic understanding) I have done one test scenario by populating data manually to the database and based on the order i correlated the events.(Like given in Impact by example 6.1)
    But i dont know exactly how EIC pre defined policies are working and what data should be present on EIC data Source and how to populate that data , and How to use the EIC console given on Impact (Automation) i am not aware .I am trying to find out any documents on this specific module but i am failed . Please help me for getting better understand the EIC module.

    If any useful doc availble please share to me on choudary.vamsi@gmail.com

    Thanks in advance.
    Vamsi.T