AIF outbound

/// <summary>
/// This event handler generates the fault types outbound file if the condition is satisfied
/// </summary>
/// <remarks>
/// Created by chait on 07/10/16 as part of fault types outbound
/// </remarks>

public void generateFaultTypeOutbound()
{
AxdSendContext axdSendContext = AxdSendContext::construct();
AifEntityKey aifEntityKey = AifEntityKey::construct();
AifConstraint aifConstraint = new AifConstraint();
AifConstraintList aifConstraintList = new AifConstraintList();
Map keyData;

if (faultTypeLoc)
{
keyData = SysDictTable::getKeyData(faultTypeLoc);

aifEntityKey.parmTableId(faultTypeLoc.TableId);
aifEntityKey.parmRecId(faultTypeLoc.RecId);
aifEntityKey.parmKeyDataMap(keyData);

axdSendContext.parmXMLDocPurpose(XMLDocPurpose::Original);
axdSendContext.parmSecurity(false);

aifConstraint.parmType(AifConstraintType::NoConstraint) ;
aifConstraintList.addConstraint(aifConstraint) ;

AifSendService::submitDefault(classNum(EAMFaultTypeService),
aifEntityKey,
aifConstraintList,
AifSendMode::Async,
axdSendContext.pack());*/
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s