Wednesday, February 13, 2008

Register a new workflow action to wss.actions file

After creating the new action in VS using WF extentions, you will need to register it to your sharepoint server.

This is usually done by registring your action in the built in WSS.ACTIONS file.

WSS.ACTIONS file is a core file, that may be overriden in service packs or future fixes, and was not meant to be altered.

Instead, create a new file named *.actions (i.e. myActions.actions) in the same directyory as WSS.ACTIONS file, and add the following content to it:
<?xml version="1.0" encoding="utf-8"?>

<WorkflowInfo Language="en-us">
<Actions>
<Action Name="NewAction">
... definition...
</Action>
</Actions>
</WorkflowInfo>


And register your actions under tag, where you see the NewAction example.

this way you avoide editing the SharePoint core files needlessly.

Thanks, Shai.