Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-dev] SequentialUnit extensions

Hi,

I'm planing to extend SequentialUnit by two boolean attributes
"rollback" and "strict" which have "true" as default. This being said in
advance: The semantics remain as is using the default values.

If "strict=true", an inapplicable rule/unit leads to an interruption of
the sequential application and a return value of "false" (meaning not
successfully applied unit)
Otherwise, "strict=false", even inapplicable rules/units will not break
the sequential unit, i.e., the unit does not care if applicable or not
and tries to apply all containees one after the other. Consequently,
*unstrict* sequential units return always "true" (i.e., are always
successful).

If "rollback=true" a rollback is performed on interruptions. This option
makes only sense if "strict=true".
If "rollback=false", no rollback is performed at all.


If anyone disagrees with these modifications or have wishes according to
the names or whatever, please speak now or forever hold your peace! ;-)

Regards,
Stefan

PS: Code modifications would be minimal!

Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top