I notice in the API documentation for the FixletActionCreator:
HRESULT SetFixletRelevance ( BSTR relevance );
The original fixlet’s relevance. This expression must be true before the action can be applied, and the action will be successful when it becomes false.
How can I set the success criteria for a task? (i.e. successful when all lines have been executed)
Sorry, accidentally hit submit… I really dislike the developerWorks forums. Complete message below…
By no means am I an expert in the platform API, but it looks like there isn’t a way to set that with the FixletActionCreator interface. Also, the 8.2 documentation says the FixletActionCreator interface is deprecated, so you might want to look at converting to the BESAPI.XMLImporter interface, and creating Fixlets/Actions using the XML specification (which is documented in the XSD schema files that are included in the platform API). Here’s the schema info for the “SuccessCriteria” element:
Yes, it looks like the FixletActionCreator is on the way out, and not really suitable for setting specific success criteria values.
One nice point that it did have though was that it allowed you to set parameters programmatically. From what I can see, there is no way to achieve that using the XML importer. Or is there…?
Looks like bug #11028 has been raised for the parameters issue above, so I’ll have to keep an eye out for that one.
In the meantime, I’m going to update the name of the action to append the parameter values I need, and then use “regex” in my relevance expression to extract them back. Seems a reasonable temporary compromise for my needs.