Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 855442

Summary: RFE: add info on printing the results of an operation
Product: [JBoss] JBoss Operations Network Reporter: Deon Ballard <dlackey>
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-01 00:34:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Aleksander's example script none

Description Deon Ballard 2012-09-07 18:35:47 UTC
The CLI examples have information on check the status of an operation, but nothing on how to get the results from the operation.

Jay wrote this script, and it would make a good example for the operation examples[1] chapter:

var c = new ResourceOperationHistoryCriteria()
c.addFilterId(<theOperationScheduleId>)
c.fetchResults(true)
var r = OperationManager.findResourceOperationHistoriesByCriteria(c)
var h = r.get(0);
var c = h.getResults();
c 




[1] https://access.redhat.com/knowledge/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/ops.html

Comment 1 Deon Ballard 2012-09-07 18:37:40 UTC
Created attachment 610828 [details]
Aleksander's example script

This example checks the process list and prints the results.

Comment 2 Deon Ballard 2013-03-01 00:34:03 UTC
Mass closure.