栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

通过Java在BMC Remedy中创建票证

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

通过Java在BMC Remedy中创建票证

杰夫,
请看下面。这将以v7的HPD:Help Desk形式创建一个简单的凭单。希望这可以帮助。

-杰森


import com.bmc.arsys.api.*;public class CreateEntry {public static void main(String[] args) {//Initialize a new ARServerUser object, this is the main object we are using for all actions// for e.g. user=Demo, password=pwd, server=remedy, port=7100ARServerUser context = new ARServerUser("Demo", "pwd", "", "","remedy",7100);//A new entry we want to submit into remedyEntry newEntry = new Entry();//put the field values in there. (Integer fieldID, Value of field)newEntry.put(7, new Value(0));          // Status<br>newEntry.put(8, new Value("This record is created via Java API"));  // Short Description<br>newEntry.put(1000000163, new Value(4000));  // Impact - (High) 1000/2000/3000/4000 (Low)<br>newEntry.put(1000000162, new Value(4000));  // Urgency - (High) 1000/2000/3000/4000 (Low)<br>newEntry.put(1000000000, new Value("xyz")); // Description<br>newEntry.put(1000000151, new Value("xyz")); // Details<br>newEntry.put(1000000099, new Value(0));     // Service Type - 0/1/2/3<br>newEntry.put(240001002, new Value("xyz"));  // Product Name<br>newEntry.put(200000003, new Value("xyz"));  // Product Cat Tier 1<br>newEntry.put(240001002, new Value("xyz"));  // Product Cat Tier 2<br>newEntry.put(200000005, new Value("xyz"));  // Product Cat Tier 3<br>newEntry.put(1000000063, new Value("xyz")); // Operational Cat Tier 1<br>newEntry.put(1000000064, new Value("xyz")); // Operational Cat Tier 2<br>newEntry.put(1000000217, new Value("xyz")); // Assigned Group<br>newEntry.put(1000000054, new Value("xyz")); // Corporate ID<br>newEntry.put(2, new Value("Demo"));<br>try{//And here we create the entry itself, printing out the EntryID we get backString EntryId = context.createEntry("HPD:Help Desk", newEntry);System.out.println("Request ID = "+EntryId);}catch(ARException arException){arException.printStackTrace();}}}


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/438265.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号