Using the coProcess object from Dexterity

Article ID: 851269
Expand all | Collapse all

TechKnowledge Content

Question:
I'm trying to use the Process Server (DPS) from my application but I'm having trouble using the coProcess object found in the Dynamics.dic. What is the method to use it?

Answer:
First, we need to create the coProcess record. This will show up in the process window.

{make sure Process ID is unique-this one is hardcoded}
set 'Process ID' of table coProcess to 4228;
set 'DPS Series' of table coProcess to 8;
set 'Remote' of table coProcess to true;
{Name in Process Monitor & Process window}
set 'Begin Group Process Name' of table coProcess to "3rd party post: Post SOP";
set 'Deletable' of table coProcess to true;
{this is the server name - could leave it empty and make user set in Processes window}
set 'Service Name' of table coProcess to "XFILES";

save table coProcess;

{----Here is the useage and call to the remote process--}

local coProcessInfo ProcessInfo;
local long lGroupID;
local DestID lDestID;

call GetProcessInfo of form coProcessObj,
4228,
0,
ProcessInfo;

lGroupID = 7662;

begingroup

ProcessInfo:'Begin Group Process Name' with
load factor ProcessInfo:'Load Factor'
using service ProcessInfo:'Service Name'
with priority ProcessInfo:Priority
queue at ProcessInfo:'Queue Time' on ProcessInfo:'Queue Date'
notify ProcessInfo:'Script Name'
deletable ProcessInfo:Deletable
groupdone ProcessInfo:ServerNotifyScriptName
assign to lGroupID;
call DefaultDpsSetup of form coProcessObj;

call remote Process_My_Batch,
'Batch Source',
'Batch Number',
false,
1,
lDestID;

endgroup lGroupID;








This article was TechKnowledge Document ID: 20854

Properties

Article ID: 851269 - Last Review: October 15, 2011 - Revision: 3.0
Keywords: 
kbmbsmigrate kbretire KB851269
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com