I have to create a 1-activity-library out of an Invoke Code activity that determines if a given year is a leap year or not, and publish it as a reusable component.
I have to create a separate Project that utilizes the created library. The implementation should contain a workflow where
The user can ask for the number of days in a given year
The workflow utilizes the above library
Based on the result of the library invocation, the workflow determines the number of days in the given year
The user is given an answer in a message box.
I think that something is wrong with my arguments. IThe code seems to work inside the library but when I am publishing the library and try to use it in other workflow it says that it is always leap year.
Then I am also thinking that if I have to put some arguments both the invoked code argument section and the other arguments section that I have marked with the red in the lower left corner.
Thank you very much! Now the activity works very well.
I just have one further question that I now have to use message box activity to print the days in a given year. For example if the user inputs the year 2004 the code determines that it is a leap year and then I should be able to use message box activity to print the days in this year, 366. If the year is not a leap year the message box should print 365. And I have to use this Invoke Code Activity in this other Main Workflow as a reusable library. The message box should be in the Main Workflow.
I have not been able to succesfully do this so I must ask if you might know how to help me with this?