Workflow getInstance fails
Posted: Thu 21 Feb 2013 13:06
hi,
I have a WPF application with a workflow, which is persisted when state is Idle. After the persist action I check the database and INSTANCESTABLE contains the right instance. Then I try to obtain the instance with:
and I always get the following error:
Even if I wait 2-3 minutes, I get the same.
In the database the LOCKOWNERSTABLE table contains a row, should not this row deleted when HostLockRenewalPeriod exceeds and move the instance to the RUNNABLEINSTANCESTABLE?
thx,
fifty
I have a WPF application with a workflow, which is persisted when state is Idle. After the persist action I check the database and INSTANCESTABLE contains the right instance. Then I try to obtain the instance with:
Code: Select all
WorkflowApplicationInstance instance =
WorkflowApplication.GetInstance(WorkflowInstanceId, GetStore());
This is how my store is configured:The execution of an InstancePersistenceCommand was interrupted because the instance owner registration has become invalid. This error indicates that the in-memory copy of all instances locked by this owner have become stale and should be discarded, along with the InstanceHandles. Typically, this error is best handled by restarting the host.
Code: Select all
var store = new Devart.Data.Oracle.DurableInstancing.OracleInstanceStore(OracleDbConnectionString)
{
HostLockRenewalPeriod = new TimeSpan(0, 0, 10),
RunnableInstancesDetectionPeriod = new TimeSpan(0, 0, 10)
};
In the database the LOCKOWNERSTABLE table contains a row, should not this row deleted when HostLockRenewalPeriod exceeds and move the instance to the RUNNABLEINSTANCESTABLE?
thx,
fifty