Error in Set Transaction Status (Assignment 2)


#1

Hi Guys,

I am trying to change the “TransactionItem” type to String. After I changed I have encountered these errors in the “SetTransactionStatus” workflow. When I tried to analyze the error, I found that (“String cannot be converted to QueueItem”).Anyone pls help me to resolve this error.

With Regards,
VP


#2

Please see that in_TransactionItem Argument/Varibale should of type “String” while building Dispatcher workflow and should be QueueItem while building Performer workflow in assignment 2.


#3

Ok. But I have kept String Type only in Dispatcher WorkFlow it Shows compiler error in “Set Transaction Status” Activity as shown in the above Screenshot.


#4

You can disable them in Dispatcher as we did in Client Security Hash assignment


#5

How can u pls explain me somewhat elaborately.


#6

Click on the activity and press Ctrl+D it will be disabled when you run the project that would not interrupt your usual workflow because it is not needed in Dispatcher workflow


#7

Hi Prankurjoshi,

I have done as you stated. But is there any other alternate method where we can make use of this transaction status activities ?

With Regards,
VP


#8

We have to find alternative methods but as far as Set Transaction Status activity is concerned it would take item as a type of QueueItem only


#9

Is there a QueueItem constructor that can convert an object to a QueueItem?


#10

Hey @mooredd,
I’m afraid there isn’t. Is there a problem?


#11

No. Found an alternative, but just more effort.