I have written a BPM when the end-user has selected the “None” workstation using Change Workstation option we need to set as “DEFAULT” workstation. But this BPM is not working.
Anyone can suggest how to resolve this issue?
I have written a BPM when the end-user has selected the “None” workstation using Change Workstation option we need to set as “DEFAULT” workstation. But this BPM is not working.
Anyone can suggest how to resolve this issue?
The client is dumb, it doesn’t query for it properly.
I just ran tests and the workstation was changed at the server, but the client will not accept it.
Pre:
if(String.IsNullOrEmpty(newWorkstationID))
{
newWorkstationID = "A0048";
InfoMessage.Publish($"Setting workstation to... {newWorkstationID}.");
}
Post:
InfoMessage.Publish($"Workstation is.... {newWorkstationID} and description is .. {workstationDescription}.");
using (var sessionMod = Ice.Assemblies.ServiceRenderer.GetService<Ice.Contracts.SessionModSvcContract>(Db, false))
{
string c1 = "", c2 = "", sid = "", sn = "", eid = "", ws = "", wsd = "", sc = "", cgc = "", cc = "", tid = "", solid = "", asid ;
bool prod = false;
IEnumerable<Guid> eff = null;
sessionMod.GetCurrentValuesFromServer(out c1, out c2, out sid, out sn, out eid, out ws, out wsd, out sc, out cgc, out cc, out tid, out solid, out asid, out prod, out eff);
InfoMessage.Publish($"Workstation is... {ws} Description is .. {workstationDescription}.");
}
Client still showed the old workstation.
Messages came back correct.
Logged out and back in and client showed correct.
SessionMod is a and will let you down.