Skip to content

Instantly share code, notes, and snippets.

@Rikkola
Created April 25, 2012 08:38
Show Gist options
  • Save Rikkola/2488234 to your computer and use it in GitHub Desktop.
Save Rikkola/2488234 to your computer and use it in GitHub Desktop.
//Set the Table Format and check-in
//TODO Is it possible to alter the content and save without checking-in?
RuleAsset asset = repositoryAssetService.loadRuleAsset( uuid );
GuidedDecisionTable52 content = (GuidedDecisionTable52) asset.getContent();
content.setTableFormat( configuration.getTableFormat() );
asset.setCheckinComment( "Table Format automatically set to [" + configuration.getTableFormat().toString() + "]" );
repositoryAssetService.checkinVersion( asset );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment