Use Expressions to Assign Values to Dynamic Ports
Assign values
If a send port is marked as dynamic, you can assign to it the value of some variable of type string that contains the URI of the port you want to use in the Expression shape. For example,
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="mailto:johnd@contoso.com";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\MyLocation\%SourceFileName%.xml";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)=@"msmq://.\private$\MyQueue";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="http://MyOrder.contoso.com";
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="ftp://MyServer/MyDirectory/%MessageID%.xml";
Then you can further assign the properties to the outgoing messages. For example,
MyOutgoingMessage(SMTP.Subject)="Purcahse Order Received";
MyOutgoingMessage(FILE.ReceivedFileName)="MyFileName.xml";
MyOutgoingMessage(FTP.UserName)="MyUserName";
MyOutgoingMessage(FTP.Password)="MyPassword";
MyOutgoingMessage((MSMQ.Transactional)=true;
See Also
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de