How to deploy a K2 blackpearl process or smartobject
K2 blackpearl Process and K2 SmartObject deployment using MSBUILD
Someone asked me today how to deploy K2 artefacts that are developed in K2 for Visual Studio. It is actually quite easy. Just follow these steps:
K2 Automated Testing Software
BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.
1. With the K2 for Visual Studio highlighted, right click on the K2 project and click on Create Deploy Package
2. Following the same step above, but click on Open Folder in Windows Explorer to view the deployment package
Open K2 Deployment Package in Windows Explorer3. Depending on your Visual Studio configuration, open the objdebug or objrelease folder and then the deployment folder
Open K2 Deployment Package MSBUILD4. Open the MSBUILD file with a text editor and set the values of the string table entries (Field Name=”example entry”) for the environment you are targeting. The one below shows the Field Name values for the ‘Development’ environment. Save the file
Save K2 Deployment Package MSBUILD file5. Open command prompt and run the msbuild.exe command with the path to the msbuild file and /p:Environment=Development as arguments. If you are targeting a different environment, replace the =Development with the name of your environment for example /p:Environment=Production
Here is the complete example command:
C:WindowsMicrosoft.NETFramework64v3.5>msbuild "C:Installsv2.4K2.WF.msbuild" /p:Environment=Production
Deploy K2 MSBUILD package6. When the process succeeds, you will see the Build succeeded message, otherwise details of the exception
Deploy K2 MSBUILD package succeeded