When I compare my smart object property to an environment varialbe that is empty my compilation errror is:
Error 1 Environment Library FieldPart used in a 'SourceCode.Workflow.Authoring.K2Field' object cannot be found in your Environment Library. Re-run the wizard and assign new values where necessary. G:\Projects\Accounting\AccountingProcesses\K2Processes\ASRSubmissions.kprx 1 1 K2Processes
If I then assign a value to the environment variable, the process compiles.
With regards to the smart object destination code, I did not imply Blackpearl does not generate code, I got to the destination rule code fine.
The problem is more than I can't get to the code for the rules which determine which destination set will be used.
I do not know how to give a smart object property, a default value (apart from doing it in the service object).
So I assigned my smart object property to a process data field with a default value. This is not an ideal solution for me, but it works. :)
Thanks for all the help.