AnsweredAssumed Answered

Static member is set to null by the process engine

Question asked by sor1 on Oct 18, 2012
Latest reply on Oct 25, 2012 by jbarrez
Hello,
I have a static member:
public final class MySingletonClass
{
    public static MyClass MyUniqueObject;
}
MyClass is a class extending the interface Com4jObject.

I need to use this static object in 2 service tasks of my workflow: the first service task create it and start to use it. The second service task also use it (and dispose it).
I cannot set this object as a process variable as it is not serializable (com object).
My problem is that my static object is randomly set to null before I try to access it in the second service task.

Why is this static member set to null and how would you do solve this problem?

Thanks.

Outcomes