Permalink
Browse files

Informer : replace update with modify

  • Loading branch information...
sotty committed Aug 8, 2012
1 parent 5bdcdeb commit ae13a41014dce759d6e74b309249810d6761147d
@@ -158,8 +158,9 @@ then
mcq.setPreLabel($lab);
mcq.setPossibleAnswersByValue( $ansValues );
- $qst.addItem(mcq.id);
- update($qst);
+ modify ($qst) {
+ addItem( mcq.getId() );
+ }
insert(mcq);
DomainModelAssociation dma = new DomainModelAssociation( );
@@ -23,8 +23,9 @@ when
$n : Note( $ctx : context, $noteId : id )
$quest : Questionnaire( id == $ctx, itemList not contains $noteId )
then
- $quest.addItem($noteId);
- update($quest);
+ modify ( $quest ) {
+ addItem($noteId);
+ }
end
@@ -36,6 +37,7 @@ when
$itemId : String() from $itemz;
not Item( id == $itemId )
then
- $quest.removeItem($itemId);
- update($quest);
+ modify ( $quest ) {
+ removeItem($itemId);
+ }
end

0 comments on commit ae13a41

Please sign in to comment.