Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 6 Nächste Version anzeigen »

 

Allgemein

Regeln des Typs "Kommunikation" können  Businessobjekte zugewiesen werden und müssen das Interface "CommunicationRule" implementieren.

Innerhalb des Baums mit der Regelbibliothek werden sie dem Knoten "Kommunikation" zugeschrieben.


Struktur


package de.projekt; 

import org.nuclos.api.rule.CommunicationRule; 
import org.nuclos.api.context.communication.CommunicationContext; 
import org.nuclos.api.context.communication.PhoneCallNotificationContext; 
import org.nuclos.api.annotation.Rule; 
import org.nuclos.api.exception.BusinessException; 

/** @name        
  * @description 
  * @usage       
  * @change      
*/
@Rule(name="ComPhone", description="ComPhone")
public class ComPhone implements CommunicationRule<PhoneCallNotificationContext> {

	public Class<PhoneCallNotificationContext> communicationContextClass() {
		return PhoneCallNotificationContext.class;
	}
	public void communicate(PhoneCallNotificationContext context)  throws BusinessException { 
	}
}


Zuweisung



  • Keine Stichwörter