Hello,

 

I have a quick question about using CFthread inside a CFC. Inside my CFC I
was to call another CFC method and pass it some of the arguments. Is the
correct way to do this below. Do I need to pass in each argument scoped
variable from the calling method and then refer to it in the attributes
scope? This DOES work, but is it the best/correct way of doing it?

 

<cfthread 

name              =     "storeMetaData" 

action            =     "run"

usr_id            =     "#arguments.usrObj.usr_id#" 

metaData          =     "#propogateData#">

      

      <cfinvoke component     =     "#application.multiUser.activeMeta#" 

      method                  =     "recordMetaData"

      usr_id                  =     "#attributes.usr_id#" 

      metaData                =     "#serializeJSON(attributes.metaData)#">

      

</cfthread>

 

 

Brook D.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341842
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to