Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Outbound Transition for a Custom Activity

Avatar

Community Advisor

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.

_Manoj_Kumar_0-1598444008351.png

 

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?


     Manoj
     Find me on LinkedIn
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor
Thanks David, It worked.

     Manoj
     Find me on LinkedIn