Publish Process

The Publish Process operation allows you to publish a workflow to a SharePoint site from the command line. You can configure a batch file to publish a workflow to multiple SharePoint sites, without going through the Winshuttle Workflow user interface.

Name

Description

Required

domain

The domain of the user account to use when publishing.

No

list

The name of the list to which to publish the process.

Yes

password

The password of the user account to use when publishing.

No

process

The name of the file containing the process definition.

Yes

processname

The name to give the process.

Yes

replacementfile

An XML file describing replacement strings to apply to the process before doing the publication.

No

url

The URL of the site to which to publish the process.

Yes

user

The name of the user account to use when publishing.

No

The following example publishes the mocRequest.xml process "Management of Change" to the "Process Controlled Shared Documents" site using the administrator account:

svadm.exe –o publishprocess –url http://acme/sv/Chemdocuments -list "Process Controlled Shared Documents" -process mocRequest.xml -processname "Management of Change" -user administrator -password 123pd -domain Acme

The following example publishes the same process as in the previous example, but in addition causes the replacement strings in replace.xml (specified below) to happen automatically:

svadm.exe –o publishprocess –url http://acme/sv/Chemdocuments -list "Process Controlled Shared Documents" -process mocRequest.xml -processname "Management of Change" -user administrator -password 123pd -domain Acme –replacementfile replace.xml

<Replacements>
<Replacement>
<Search>http://www.mystagingserver.com (http://www.mystagingserver.com)</Search>
<Replace>http://www.myproductionserver.com (http://www.myproductionserver.com)</Replace>
</Replacement>
<Replacement>
<Search>http://www.myotherserver.com (http://www.myotherserver.com)</Search>
<Replace>http://www.yetanotherserver.com (http://www.yetanotherserver.com)</Replace>
</Replacement>
</Replacements>

Previous Topic

Next Topic