Using the coProcess object from Dexterity

Article ID: 851269
Expand all | Collapse all

TechKnowledge Content

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?

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,

lGroupID = 7662;


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',

endgroup lGroupID;

This article was TechKnowledge Document ID: 20854


Article ID: 851269 - Last Review: October 15, 2011 - Revision: 3.0
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