Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×Hello Everyone,
I want to use a thread in a custom script post-function as following code.
Thread.start{
printf("will sleep")
Thread.sleep(4000L)
printf("slepp end")
triggerDPTransaction(actionUser, actionId, comment, dpIssue)
}
But it doesn't seem to work, can anyone help me? Thanks!
Hi @Mack Chen
Thats an unusual request.
Do you mind if I ask what is the problem you are trying to solve from a functional point of view? There may be other options.
@Tom ListerThanks for your attention.The problem I want to solve as following:
I have two workflows, named 'DP' and 'DO', DP has two transactions, named 'a','b' and DO has two transactions, named 'c','d', when I click a, will trigger DO's c, and c has a postfunction to judge condition, if true, will trigger DP's b, then b will trigger DO's d. I did this, everything is OK, but the status on DP and DO is not correct, the DP's status should be B, and the DO's status shouled be D, but it's A and C. So I want to resolve this with thread at DO's c to trigger DP's c. Is the description clear?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I don’t think the threading will give you any advantage here. You could try just calling your triggerSPTransition method directly.
Which plugin are you using to run script?
are there any transitions happening
are there conditions or validators that need to be met?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.