Bug 1523476

Summary: [RFE] [4.6] Describe how to back an Automate method with an expression
Product: Red Hat CloudForms Management Engine Reporter: Andrew Dahms <adahms>
Component: DocumentationAssignee: Chris Budzilowicz <cbudzilo>
Status: CLOSED NEXTRELEASE QA Contact: Suyog Sainkar <ssainkar>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: hhudgeon, jhardy, mkanoor, obarenbo, ssainkar
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-15 14:46:34 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:
Bug Depends On: 1492275    
Bug Blocks:    

Description Andrew Dahms 2017-12-08 05:31:54 UTC
Red Hat CloudForms 4.6 adds a new expression builder for Automate methods that simplifies the process of creating methods. A procedure must be added to the Scripting Actions in CloudForms guide that outlines how to use this new feature.

Comment 2 Andrew Dahms 2017-12-08 05:33:27 UTC
Assigning to Chris for review.

Comment 4 mkanoor 2018-01-08 20:53:19 UTC
Hi Chris,
looks good, but I would like to add some of the notes from this talk topic.
http://talk.manageiq.org/t/automate-expression-methods/3071

We should mention that the name of the parameters have to be arg1, arg2, arg3 ... for each parameter provided at runtime by the user.

If there are 2 runtime parameters you need arg1 and arg2 defined in the input parameters. In the default value for these fields you can substitute values from other objects in the Automate Workspace.

Comment 5 Andrew Dahms 2018-01-09 04:17:32 UTC
Assigning Suyog as the QA contact.

Comment 7 mkanoor 2018-01-10 16:11:34 UTC
Hi Chris,
Looks good, the examples would help, at some point I am thinking Pater McGowan might add these methods to his Automate Book, you might want to ping him if he has any examples that he is using or use the ones from my talk topic.

Thanks,
Madhu