Outbound Transition for a Custom Activity | Community
Skip to main content
Manoj_Kumar
Community Advisor
Community Advisor
August 26, 2020
Solved

Outbound Transition for a Custom Activity

  • August 26, 2020
  • 1 reply
  • 2251 views

Hello All,

 

I am trying to build a custom activity which will shorten the URLs. I have completed most of the parts. But I am not able to figure out how to create a temporary table for my activity and then pass the data to the next activity.

 

My workflow just ends at the bitly activity and do no go beyond that.

 

Here is the transition code which I am using for this custom activity.

<element name="transitions"> <element name="transition" ref="transition"/> </element>

 

Can anyone help me here?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidKangni

Hi @_manoj_kumar_ ,

 

I think your schema is correct. If you want to continue the flow to the transition, you need to add the following in your activity js (I pasted 2 snippets

 

task.postEvent(task.transitionByName('transition'));
task.setCompleted();
return 0;

or

task.postEvent(task.transitionTransition())
task.setCompleted()

return 0;

 

Of line, I developed also a bit.ly URL Shortener using typologies rules. If you want we can discuss  about the best practices.

Thanks,

David 

1 reply

DavidKangni
Community Advisor
DavidKangniCommunity AdvisorAccepted solution
Community Advisor
August 26, 2020

Hi @_manoj_kumar_ ,

 

I think your schema is correct. If you want to continue the flow to the transition, you need to add the following in your activity js (I pasted 2 snippets

 

task.postEvent(task.transitionByName('transition'));
task.setCompleted();
return 0;

or

task.postEvent(task.transitionTransition())
task.setCompleted()

return 0;

 

Of line, I developed also a bit.ly URL Shortener using typologies rules. If you want we can discuss  about the best practices.

Thanks,

David 

David Kangni
Manoj_Kumar
Community Advisor
Community Advisor
August 27, 2020
Thanks David, It worked.
Manoj     Find me on LinkedIn