How to create a work order
This article introduces the relevant knowledge of "how to create a work order". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
MaximoConnector mc = new MaximoConnector (new Options (). User ("maxadmin"). Password ("maxAdmin123"). Mt (false). Lean (true) .auth ("maxauth"). Host ("192.168.43.200"). Port (9080) .debug (true); try {mc.connect () ResourceSet syncSet = mc.resourceSet ("OSLCWODETAIL") JsonObject createSyncObj = Json.createObjectBuilder () .add ("spi_wm:orgid", "EAGLENA") .add ("spi_wm:siteid", "BEDFORD") .add ("spi_wm:woclass", "WORKORDER") .add ("oslc:shortTitle", "DF0000") .add ("spi:status") "WAPPR") .build () Resource syncRes = syncSet.sync (createSyncObj); Util.jsonPrettyPrinter (syncRes.getURI ()); mc.disconnect ();} catch (IOException | OslcException e) {e.printStackTrace ();}
This is the end of how to create a work order. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!