*/
public void ruleFlowAttached(AssetItem item) {
String content = item.getContent();
if ( content != null && !content.equals( "" ) ) {
RuleFlowProcess process = readProcess( new ByteArrayInputStream( content.getBytes() ) );
if ( process != null ) {
String packageName = item.getPackageName();
String originalPackageName = process.getPackageName();
if ( !packageName.equals( originalPackageName ) ) {
process.setPackageName( packageName );
XmlBPMNProcessDumper dumper = XmlBPMNProcessDumper.INSTANCE;
String out = dumper.dump( process );
item.updateContent( out );
item.checkin( "Changed BPMN2 process package from " + originalPackageName + " to " + packageName );
}