Symptoms
When trying to package a solution for the first time in 4.6.9 that includes a Smartforms-Integrated workflow, errors are thrown on the Workflow component regarding "Activity could not be found".
Another error that was seen was "Index was outside the bounds of the array" when trying to deploy a Smartforms Designer-created workflow to a new environment.
Diagnoses
These are both bugs in Package and Deployment 4.6.9.
Resolution
The original problem seen was the "Activity could not be found" that is a known bug in 4.6.9 Package and Deployment. The ticket was attached the following bug item:
Bug 514111: K2SF Workflow Integration - "current WF activity" condition does not work on manual WF integrated Form
After applying the fix, the "Activity not found" errors were remedied, but then another error was encountered regarding additional references not being found on the workflow side: "Index is outside the bounds of the array". This error was seen when trying to deploy a workflow designed using K2 Designer. A retry of the item resulted in strange behavior from Package and Deploy and the deployment hangs. This seems to be related to the Folio field on the workflow and is also a known issue and the following bug was logged:
Bug 543415: PandD MMC DeployWorkflow: "Index was outside the bounds of the array" error when making a change to a Folio and redeploying
The following steps were taken to workaround the behavior:
-On the source machine, go into the workflow start rule for the process in K2 Designer, then delete the value in the folio field
-Save and redeploy the workflow on the source environment
-Re-package the entire solution up again from the source
-Deploy the package to target environment
-Re-map the folio field in the workflow on the target environment