Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Clarification: Artifact Validation Policy

Seeking clarification on: Artifact Validation

With artifact validation policy, is there a way to search for a pattern or regex, as a filename? I am trying to verify that some spreadsheets have been attached to an asset, they contain scoring from a code review, for example. I might require one or three of these attachments depending on the type of code asset. They might be .xls or they might be .ods (guess I could extend to other types if I need). There also are code review templates for different technologies, like Java, C++, etc.

So I have files like: java_code_review.xls, cpp_code_review.ods, etc.

Here's a mock up of what I'm trying to do:
If asset cat. is SILVER, Asset must contain ONE artifact with filename like
*_code_review_.(xls|ods)
If asset cat. is GOLD, Asset must contain THREE artifacts with filename like
*_code_review_.(xls|ods)

Is there a way to do that?

0 votes



One answer

Permanent link
The extension type for the Artifact validation is a regular pattern. But there is not logic linking between extensions/categories.

Best bet is to create a custom policy yourself ... given that you are only looking at asset information (categories, artifact names) ... it should be quite simple. Start here: http://publib.boulder.ibm.com/infocenter/ramhelp/v7r5m0/topic/com.ibm.ram.doc/topics/t_use_custompolicy_api.html

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 16 '11, 11:31 a.m.

Question was seen: 5,815 times

Last updated: Aug 16 '11, 11:31 a.m.

Confirmation Cancel Confirm