Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can i create a xoml file contains all activities of SharePoint Workflow such as: SendEmail, CreateTask, OnTaskChnged ....

Any ideas?

Thanks in advance

share|improve this question
    
What exactly you want to achieve? –  Aanchal Jun 19 at 6:24
    
I want to create xoml file dynamically, contains workflow activities, and assign this file to create a workflow instance. –  ABA Jun 19 at 9:53
add comment

1 Answer

Here is a guide for 2007: http://agiledirect.wordpress.com/2008/07/04/packaging-and-re-using-sharepoint-designer-workflows-part-1/ where you will be able to find the .xoml file

And here for 2013: http://msdn.microsoft.com/en-us/library/office/jj819316(v=office.15).aspx (note that it will be a .wsp file).

Steps:

  1. Open an existing workflow, or develop a new workflow, in SharePoint Designer 2013.
  2. On the Workflow Settings tab in the ribbon, click the Save as Template button in the Manage section as shown in the figure.

enter image description here

  1. An informational dialog box appears to let you know the template has been saved to the Site Assets library.
  2. Click the Site Assets library to view the workflow template as shown in the figure.

The link also contains information regarding how to move this template to a new site collection and activate it

share|improve this answer
    
I need samples how can i use the objects model in C# to create this file (by serialize & deserialize methods) –  ABA Jun 19 at 9:47
    
That's not at all part of your question –  Robert Lindgren Jun 19 at 10:40
    
just i need how can I create this file dynamically using C#, do you have any idea? –  ABA Jun 19 at 11:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.