Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 501
  • Last Modified:

Re-registering a single workflow activity

I have a workflow assembly that contains multiple workflow activities.  The assembly has been registered in CRM and all activities work fine.  Occasionally I need to make a change to one of the activities.  When I am done, how do I re-register only the activity that I changed?

Currently I unregister the entire assembly and then have to turn right around and re-register the entire assembly and pick all the workflow activities.  While this works, it seems odd when I only need to update a single activity.
0
GaryRasmussen
Asked:
GaryRasmussen
  • 6
  • 5
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi,

if you are using a plugin registration tool you can unregister the activity you have changed. And then register the assembly only with the updated activity.

regards,
Chinmay.

0
 
GaryRasmussenAuthor Commented:
If I register the assembly with only one select activity, won't the other activities get unregistered?
0
 
Chinmay PatelEnterprise ArchitectCommented:
When you load the assembly, it shows you the activities whcih are part of this assembly. There you will uncheck other activities and only select the activity you want to update. PRT will give you a message that 1[depending upon selection] activity registered.

Regards,
Chinmay.
0
Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

 
GaryRasmussenAuthor Commented:
Ok, I thought that by reloading the assembly with only the 1 activity selected, that it would get loaded as only having the 1 activity and none of the other activities would work any longer.  So does that mean that the assembly does nopt actually get loaded?  It is only used to contain the activities?

Becasue otherwise if you registered a DLL that had say 5 classes, and then later removed 4 of the classes and reregistered the DLL, you would no longer have access to the other 4 classes when referencing the DLL.
0
 
Chinmay PatelEnterprise ArchitectCommented:
In PRT, select the assembly and then click on Update from top toolbar and then you can register the activities. And yes if you register an assembly after removing 4 other classes you will get an error in runtime.

Regards,
Chinmay.
0
 
GaryRasmussenAuthor Commented:
So you are saying that if I update the assembly with only 1 activity selected, it will not unregister my other unselected activities and they will all continue to work as they did before?
0
 
Chinmay PatelEnterprise ArchitectCommented:
Yes.
0
 
GaryRasmussenAuthor Commented:
Sage, I am still un clear here.  I click on the Assembly in PRT and then click the Update buttton.

I then select my assembly and in step 2, it shows all of the activities,  I unselect all and then select only the 1 activity I want to update and click the Update Selected Plugins and it did exactly what I DID NOT want it to do, it unregistered all of the unselected activities.

0
 
GaryRasmussenAuthor Commented:
Looks like I gave out the points to quickly.  Chinmay_Patel, do you have any suggestions to my last post?  Not sure why I started it with Sage.
0
 
Chinmay PatelEnterprise ArchitectCommented:
Hi GaryRasmussen,

Sorry for the delay and yes you can always re-open the question[I think so]. As long as your issue is considered, could you tell me where do you register your activities? Are they on Disk or Database?
My earlier answer is wrong, if you have updated the your workflow assembly then you can just overwrite it over your existing assembly and it should work fine.

Regards,
Chinmay.
0
 
GaryRasmussenAuthor Commented:
Database,

Yes, I know I can overwrite it.  What I was asking was if I have a single assembly with say 30 activities and I make a slight change to 1 of the activities, how do I re-register the modified activity without having to re-register the other 29 activities that have not changed in years?

Thanks!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now