Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Outbound Transition for a Custom Activity

Manoj_Kumar_
Community Advisor
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?

1 Accepted Solution
DavidKangni
Correct answer by
Community Advisor
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 

View solution in original post

2 Replies
DavidKangni
Correct answer by
Community Advisor
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 

View solution in original post