aSituation.setSuccessDisposition( Boolean.TRUE );
}
LangStringImpl lstring = new LangStringImpl( lStringC );
aSituation.setMessage( lstring );
XmlBeansManagementEvent event = new XmlBeansManagementEvent( aSituation );
// set resource Reporter and source ResourceId
ResourcePropertySet propSet = m_notificationProducerResource.getResourcePropertySet( );
ResourceProperty resourceId = propSet.get( ApplicationPropertyQNames.RESOURCEID );
String Id = null;
Iterator propElemIter = resourceId.iterator( );
while ( propElemIter.hasNext( ) )
{
XmlObject propElem = (XmlObject) propElemIter.next( );
if ( propElem instanceof XmlAnyUriImpl )
{
XmlAnyUriImpl aUri = (XmlAnyUriImpl) propElem;
Id = aUri.getStringValue( );
event.setReporterResourceId( Id );
event.setSourceResourceId( Id );
}
else
{
throw new Exception( " ResourceId property should be instanceof XmlAnyUriImpl" );
}
}
//set custom CorrelationId
Object[] corId = new Object[1];
CorrelationIdDocument id = CorrelationIdDocument.Factory.newInstance( );
id.setCorrelationId( m_correlationId );
corId[0] = id;
event.setAny( corId );
// Topic publish event to the subscribers
operationalStatus.publish( event );