Hi All,
I added a destination queue in my activity as the destination rule.
I exported the process . After triggering the process, the process went to Running state and then to Error.
I got the following error :
"System.Exception: Type 'SourceCode.Logging.LoggerException' in assembly 'SourceCode.Logging, Version=3.6262.1.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
at K2Code44806.Main(ClientEventContext K2)"
The following is the code behind my client event :
public void Main(ClientEventContext K2)
{
try
{
K2.ActivityInstanceDestination.DataFieldsF"DocPath"].Value = K2.ProcessInstance.DataFieldsa"FilePath"].Value.ToString() + K2.ProcessInstance.DataFieldsa"FileName"].Value.ToString();
K2.ActivityInstanceDestination.DataFieldsn"DestinationQueue"].Value = K2.ActivityInstanceDestination.DestQueue.Name.ToString();
K2.AddWorklist("ASP", K2.SerialNumber);
}
catch (System.Exception ex)
{
throw new System.Exception(ex.Message);
}
}
Please guide me
Thanks and Regards