It's all about the answers!

Ask a question

Asset artifact constraint


Rogério Ramos da Silva (3352827) | asked Mar 15 '13, 3:10 p.m.
Hi,

I have a type named Document representing any kind of document used on users education. These documents can be a presentation, text document or a pdf. I'd like to use just one artfact constraint which could check the file extension between some possibilities like a regex.
Is there some way to create this config? I've tried to use the value in such formats:

(doc|xls|pdf|ppt)
(.doc|.xls|.pdf|.ppt)
doc xls pdf ppt
.doc .xls .pdf .ppt

All options has failed.

PS.: Can to change the constraints is a good improvement too.

One answer



permanent link
Rich Kulp (3.6k38) | answered Mar 15 '13, 5:37 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
We don't have a constraint that takes regular expression. That's a good idea. You can open an enhancement.

If you are a paying IBM customer you should open an RFE.

Comments
Gili Mendel commented Apr 01 '13, 11:58 a.m.
JAZZ DEVELOPER

Can always use a custom policy to check this.

Your answer


Register or to post your answer.