package org.drools.core.metadata;

public interface WorkingMemoryTask<T> extends MetaCallableTask<T>, Identifiable {

    public Object getTargetId();

    public Modify getSetters();

    public Object getTarget();
}

package org.drools.core.metadata;

import java.io.Serializable;

public interface WorkingMemoryTask<T> extends MetaCallableTask<T>, Identifiable, Serializable {

    public Object getTargetId();

    public Modify getSetters();

    public Object getTarget();
}

Mark WorkingMemoryTask as Serializable for the persistence and retrieval of sessions.